Last active
July 6, 2020 07:03
-
-
Save ritacse/48279f6f4a0a693d5fb163bcc85d97c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///Prevent users from submitting a form by hitting Enter or | |
//Avoid Enter Key Form Submit in Pop Up | |
$("#txtSubEmpId").on('keypress', function (event) { | |
if (event.which == 13 && self.GetSubEmpbyIDCode() != "") { | |
event.preventDefault(); | |
// Write ur code here; | |
return false; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment