asp.net - How to get Tab Index of active/focused control on page using javascript -


i have controls on page, there way can tabindex of active control or focused control?

thanx

i'm assuming you've got jquery, since question tagged asp.net. in case:

var tabindex = $(':focus').attr('tabindex'); 

should it. if element not have explicitly declared tabindex attribute, tabindex var undefined.


Comments

Popular posts from this blog

mysql - How to insert just year and month into date field? -

c# - Detect changes in ObjectSet in Entity Framework 4.0? -