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! Link to comment https://forums.phpfreaks.com/topic/92611-option-group-return-label/ 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? Link to comment https://forums.phpfreaks.com/topic/92611-option-group-return-label/#findComment-474649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.