109
rated 0 times
[
116]
[
7]
/ answers: 1 / hits: 30781
/ 12 Years ago, sun, december 30, 2012, 12:00:00
So in normal situation where jquery i allowed and i can bind the field onkeyup i would use:
$('#something').keyup(function(e) {
var enterKey = 13;
if (e.which == enterKey){
somefunction();
}
});
however i cannot use this and will have to use something like:
<input id=something onkeyup=onkeyup_colfield_check(this) type=text>
function onkeyup_colfield_check(e){
var enterKey = 13;
if (e.which == enterKey){
somefunction();
}
}
However this doesn't work like the above.
how can i achieve the same result like the first example but with something like that?
More From » html