Hi,
I have a multiple select box with options group like:
<select id="sel_salaryrange" name="salaryranges[]" size="8" multiple="1">
<optgroup label="PKR" class="PKR">
<option value="1">15000 - 20000</option>
<option value="2">18000 - 35000</option>
<option value="3" selected="selected">50000 - 100000</option>
</optgroup>
<optgroup label="SAR" class="SAR">
<option value="4">1000 - 2000</option>
<option value="6" selected="selected">3000 - 5000</option>
</optgroup>
<optgroup label="USD" class="USD">
<option value="5">1000 - 3000</option>
</optgroup>
</select>
i.e. there are 3 options group name: 'PKR', 'SAR' and 'USD' where 2 items are selected in 'PKR' and 'SAR' option group. Now I want to disallow the multiple selection within same option group, how it would be resolve through jQuery or JavaScript, JQuery will be preferable.
I would be very thankful to you in this regard.
Thanks