JQuery SimpleModal

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2009-08-19T03:48:55Z Indexed on 2010/05/06 12:38 UTC
Read the original article Hit count: 216

Filed under:
|

I've got a submit button inside my modal, and when it's pressed nothing happens! How do I make my form submit when the push my submit button? I don't want to use $('form').submit(); because then php doesn't detect that my button was clicked.

<script type="text/javascript" language="javascript">
    $(document).ready(function () { 
        $('#btnAdd').click(function (e) { 
            //clicking the button shows the modal popup up 
            e.preventDefault();
            $('#AddCareerItem').modal(); 
        });
        $('#btnCancelCareerContent').click(function (e) {
            //close the modal with the cancel button 
            $.modal.close();
        }); 
    }); 
</script>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about simplemodal