Here is the code that would not work. The button click event fired the alert, the jqxSubmitButton would never fire the alert.
<script type="text/javascript">
$("button").click(function () {
alert("button clicked");
});
$("#jqxSubmitButton").click(function () {
alert("button clicked");
});
</script>
<div>
<input style='margin-top: 20px;' type="Button" value="Submit" id='jqxSubmitButton' />
</div>
with the div after the code? didnt work. Put the div first, script after? works, I had tried the onformload() thinking it would run after the DOM was finished, one button made the alert the other didnt. well ok, Jquery.