i am trying to alert 1 on enter keypress can anyone help me to solve this? i am doing this inline because to work in rows and on every time enter key press send a row num with that request
<input type="text" id="tt" name="tt" onkeydown="javascript: if (keyCode == 13) alert(1)"/>
If you want to use inline js, just put event.keycode instead of keycode you can use:
<input type="text" id="tt" name="tt" onkeydown="javascript: if(event.keyCode == 13) alert(1);"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With