ASPDOTNETMVC
Pages
Home
search
C#
Razor
JQUERY
JavaScript
jqgrid
Sql Server
HTML5
Search This Blog
Thursday, December 6, 2012
Trigger a button click with JavaScript on the Enter key in a text box
Solution:
<
input
type
="text"
id
="projectname"
onkeydown
="if (event.keyCode == 13) document.getElementById('btnregister').click()"
/>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment