Last post Aug 10, 2018 03:18 AM by Nan Yu
Aug 09, 2018 06:29 PM|zhao790|LINK
I have one asp.net web page with a dropdown list control containing employees and a list box control containing job tasks employees could be assigned. Once a employee is selected from dropdown, go to database to get data and display employee's assigned tasks
in the list box.
Due to long list of tasks of list box, I want to scroll the first selected item to be viewable in the list box. How to implement jQuery function for this task? Thanks in advance!
Aug 10, 2018 03:18 AM|Nan Yu|LINK
You can try with :
$('select option:first-child').attr("selected", "selected");