b24
asked on
Adapt jQuery Selectbox plugin to add extra class to select list
Hi All,
I'm using a jQuery Selectbox plugin from the following location: http://www.bulgaria-web-developers.com/projects/javascript/selectbox/
It works fine except that I would like to be able to add a class to either the <a> link or <li> that has been chosen by the user so when the dropdown is opened again, I can have styled that <li> to look like the active selection.
So when the user clicks on a list option, either the <a> or <li> get an additional class of 'selected' or whatever which is then removed when you click on another option.
Any ideas?
Many thanks.
jquery.selectbox-0.2.zip
I'm using a jQuery Selectbox plugin from the following location: http://www.bulgaria-web-developers.com/projects/javascript/selectbox/
It works fine except that I would like to be able to add a class to either the <a> link or <li> that has been chosen by the user so when the dropdown is opened again, I can have styled that <li> to look like the active selection.
So when the user clicks on a list option, either the <a> or <li> get an additional class of 'selected' or whatever which is then removed when you click on another option.
Any ideas?
Many thanks.
jquery.selectbox-0.2.zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks kozaiwaniec !
my pleasure :))
Cd&