Reputation: 2636
Is there any way to capture the ENTER key on an <input>
element of type checkbox
?
<input type="checkbox" value="1" name="remember" />
I have tried this in JavaScript:
$('input').on('keydown',function(e){ console.log(e.which)});
and it is not working.
Upvotes: 2
Views: 850