0 محصولات
نمایش سبد خرید
اسکریپت برای جلوگیری از ارسال فرم با زدن دکمه اینتر و رفتن به input بعدی

<script>
$(document).ready(function () {
//جلوگیری از ارسال فرم با دکمه اینتر و تب شدن تک تک آیتم ها
var inputs = $(':input[type=text]').keypress(function (e) {
if (e.which === 13) {
//alert(inputs.index(this));
e.preventDefault();
var nextInput = inputs.get(inputs.index(this) + 1);
if (nextInput) {
nextInput.focus();
}
}
});
});
</script>
0