I have a select box in which i can select multiple options. In the select box are multiple optgroups. Is there an easy way to select a whole optgroup at once in javascript?
jquery:
$('#myoptgroup option').attr('selected', true);