I have an option box with 30 items in 5 groups. To make it easier for the user, I put in a title before each of the groups. This is done in a php function.
When a user clicks on an item I get the correct name but the wrong selectedIndex because of the titles.
I set up a global variable called $deduct and set the value to which group it is in. I can then adjust the selectedIndex by the value of $deduct.
Is there a way to do this?