Go to next item by "Enter" press


 If you want Go to next item  by "Enter" press. then following the steps...


Go to Page Property :

 JavaScript Group :

  --> Execute when Page Loads : (this code Copy to paste)


   $(

'body').on('keydown', 'input, select, textarea', function(e) {

    var self = $(this)

      , form = self.parents('form:eq(0)')

      , focusable

      , next

      ;

    if (e.keyCode == 13) {

        focusable = form.find('input,select,textarea,tabindex').filter(':visible');

        next = focusable.eq(focusable.index(this)+1);

        if (next.length) {

            next.focus();

        } else {

            form.submit();

        }

        return false;

    }

});



Note : If you want "textarea" item not in this code. you can remove this.

Post a Comment

Previous Post Next Post