// carriage return event bindings $ (". Left-content"). KeyUp (function (event) { = Event | | window.event; = Theevent.keycode | | Theevent.which | | Theevent.charcode; if (Event.keycode ==13) { $ (". Textbox-addon"). Click (); } });
// carriage return event bindings $ ("#Search-div"). Bind ("KeyDown", function (e) { // compatible with FF and IE and opera var Theevent = e | | window.event; = Theevent.keycode | | Theevent.which | | Theevent.charcode; if (Code = =) { // Enter execution query $ ("#terminalList-search-btn"). Click (); });
<div id= "Search-div"> <input type=" hidden "id=" Shipinfo_edit_shipid "value=" ${shipid} "> <fieldset> <LEGEND&G T;${message ("Ov.terminalInfo.search")}</legend> <form id= "Terminallist-search-form"class= "Search-form" > <input type= "Text"class= "Easyui-textbox" name= "Terminalid" validtype= "length[0,20]"/> <input type= "text "class= "Easyui-textbox" name= "number" validtype= "length[0,20]"/> </form> <divclass= "Search-item" > <button id= "terminallist-search-btn"class= "Easyui-linkbutton" data-options= "iconcls: ' Icon-search '" >${message ("Ov.search")}</button> </div> </fieldset></div>
jquery Bound Carriage return event