Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

make enter key work as tab in Tabular Form

LT.oraJun 10 2013 — edited Jun 12 2013

from the thread :make enter key work as tab in apex

got the code :

$(document).ready(function() {

$('input').keydown( function(e) {

        var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;

        if(key == 13) {

            e.preventDefault();

            var inputs = $(this).closest('form').find(':input:visible');

            inputs.eq( inputs.index(this)+ 1 ).focus();

        }

    });

});


This works fine on tabular forms if there are existing records
but as soon as I hit [ Add Rows ]
hitting enter does not move the cursor
on Select controls too cursor doesn't work


This post has been answered by VC on Jun 11 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2013
Added on Jun 10 2013
19 comments
2,393 views