Horizontal scroll when pressing tab

Asked

Viewed 45 times

2

I have a table based on the plugin Datatables and with it, I fixed the first four columns of my table that may have n columns - they are generated the basis of a database query - and, fixed columns will always be present and are informative, have only text. The other columns have a input each.

As the document has multiple columns, and generated a scroll horizontal.

My intention is that the user press the key tab, the scroll accompany the input who has just received focus. Currently he trades from inputbut the scroll is in the starting position, requiring the user to drag to see where it is.

How to proceed?

  • You can do a jsFiddle with the problem?

1 answer

0

  • Actually my intention is to navigate horizontally by inputs by pressing the tab key

Browser other questions tagged

You are not signed in. Login or sign up in order to post.