I have following script to prevent a button from submitting twice by double clicking. It works fine.
prevent a button from submitting twice
But the scenario gets clumsy when I added a R
R
I think somthin like this:
$('.myButton').click(function (e) { if(Page_IsValid){ if (isActionInProgress == 'No') { isActionInProgress = 'Yes'; } else { e.preventDefault(); //alert('STOP'); } } });