HTML
<form>
<input type="text" name="name">
</form
JS
$("input").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
$("form").submit();
}
});
<form>
<input type="text" name="name">
</form
JS
$("input").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
$("form").submit();
}
});
No comments:
Post a Comment