So in normal situation where jquery i allowed and i can bind the field onkeyup i would use:\[code\]$('#something').keyup(function(e) { var enterKey = 13; if (e.which == enterKey){ somefunction(); } });\[/code\]however i cannot use this and will have to use something like:\[code\]<input id="something" onkeyup="onkeyup_colfield_check(this)" type="text">\[/code\]\[code\] function onkeyup_colfield_check(e){ var enterKey = 13; if (e.which == enterKey){ somefunction(); }}\[/code\]However this doesn't work like the above. how can i achieve the same result like the first example but with something like that?