You can associate a keypress event with a document and trigger() with a handler on your button.
$(document).bind('keypress', function(e){ if(e.which === 13) {
This will trigger every time you press the return key on your site. You probably want this to happen only if someone uses return in your input form. You just need to change the selector from document to any type of selector that matches your control.
Ref . : . trigger ()
jAndy source share