asked on May 4, 2018
Has anyone implemented optgroup to a drop-down menu? I tried the following JavaScript but it seems off when I see it in the browser
$( document ).ready(function() { $('select').prepend('<optgroup label="Some Title">'); $("select").find("option").eq(0).remove(); //$('select').append('</optgroup>'); });
0
0