20
rated 0 times
[
21]
[
1]
/ answers: 1 / hits: 25041
/ 9 Years ago, wed, december 2, 2015, 12:00:00
This script I have on my site is causing some unexpected error: Uncaught ReferenceError: $ is not defined
it should rewrite function of enter to act as a tab within the inputs on site form instead of submitting that form.
<script type=text/javascript>
$('input').keypress(function(e) {
if (e.which == 13) {
<--! says error is here within the $ symbol -->
$(this).next('input').focus();
e.preventDefault();
}
});
</script>
More From » php