How to set the default button of a form using javascript or jQuery??
$(document).ready(function ()
{
$(".tbPassword").keydown(function (e) /* or keyup */
{
if (e.keyCode == 13) // 27=esc
{
$("form").submit();
}
});
});
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