javascript - Autofocus In Horizontal Scroll -


i have horizontal scroll-able div list items.which looks below. want list autofocused when user clicks on list items. presently, list item sits @ position. there way in javascript or jquery autofocus list item ?

following css used making horizontal scroll div

on ul

white-space: nowrap;  overflow-x: auto; 

on li

display: inline-block !important;     float: none; 

horizontal list

you can try this, $(yourelement).trigger("focus").


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

SoapUI on windows 10 - high DPI/4K scaling issue -

java - why am i getting a "cannot resolve method" error on getApplication? -