JQuery SimpleModal
- by Matt
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>