Fire on enter
Javascript/jQuery snippet mach. field Daq Enter button yIpol 'ej Qu' mIw.
$("[fire-on-enter]").not('.fire-on-enter-bound').on("keypress", function(e) {
if (e.which == 10 || e.which == 13) eval($(this).attr("fire-on-enter"));
}).addClass("fire-on-enter-bound");
script lo'lu':
<input type="text" fire-on-enter="doSomething()">
fire-on-enter-bound nuq? Ajax reH vIlo' content 'ej controls chu' tlhap vaD. chu' controls keypress bind vaD JavaScript vIQubmoH. 'ach controls bind'a' Daq keypress cha'DIch bind 'ej wa' Enter pol cha'logh function Qu'. vaj fire-on-enter-bound class bind controls Daq lan 'ej event cha'DIch bind pagh.