Next input form when Enter's clicked
$('#subscribeModal').on('keydown', 'input', function (event) {
if (event.which == 13) {
event.preventDefault();
var $this = $(event.target);
var index = parseFloat($this.attr('data-index'));
$('[data-index="' + (index + 1).toString() + '"]').focus();
if (index < 2) return;
subscribe();
}
});
Next input form when Enter's clicked
Reviewed by Leo
on
Januari 31, 2023
Rating:
Tidak ada komentar