I have a button in a modal window:
<button id=submit_btn class=btn btn-link>Send the invitation</button>
I'm trying to capture the click:
$('#submit_btn').click(function(event){
event.preventDefault();
alert( GO );
});
I've read that button clicks get swallowed in modal windows and that, to prevent that, use event.preventDefault(). But that's not working. I can't capture the click event of this button.
What else am I missing?
Any tips are greatly appreciated!