$(function () { // make the enter button work, newsletter $('input#NewsLetterInput').on('keypress', function (event) { var keyCode = (event.keyCode ? event.keyCode : event.which); if (keyCode == 13) { event.preventDefault(); $(this).next('input').focus().trigger('click'); } }); });
Volg ons