I am trying to attach a click event handler on a button but it doesn't call the click event on the button. I guess I am using wrong selectors. Can anybody help me out?
The HTML:
<button type="submit" class="btn btn-primary btn-block mb20 submitForm" onclick="RemoveValidation()">Search</button>
And here is the JQuery:
$("#txtZip").keyup(function (event) {
debugger;
if (event.keyCode == 13) {
$(".btn .submitForm").click();
}
});