Can anyone assist me with this issue I am having?
I currently have a button set up as follows:
<input type="button" id="myButton" name="myButton" value="ClickMe!!" onClick="callMe()"/>
I need to disable the button using jQuery, standard javascript, or Dojo within the onClick event:
$('#myButton').attr('disabled', 'disabled');
The problem I'm encountering is that even when the button is disabled, clicking on it still triggers the callMe()
function.
How can I prevent the disabled button from executing the onClick function?