LostSole Posted February 23, 2008 Share Posted February 23, 2008 Hi, is there a way to return the option group label of a drop-down box created in HTML? Eg. <select> <optgroup label="Swedish Cars"> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> </optgroup> <optgroup label="German Cars"> <option value ="mercedes">Mercedes</option> <option value ="audi">Audi</option> </optgroup> </select> How do i know if the car selected was a swedish car or a german car? Many thanks! Quote Link to comment Share on other sites More sharing options...
Barand Posted February 23, 2008 Share Posted February 23, 2008 How did you know which group to put the car in if you don't know that? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.