[Plugin: Dropdown Menus] Get rid of 'blanking' title; change some items to optgroup
-
I added this in my functions.php:
$("<option />", { "selected": "selected", "value" : "", "text" : "Go to \u2026" }).prependTo("select.dropdown-menu"); }); });
so the menu always displays the text “Go to …” on page load. How do I get rid of the default “–” place holder?
Also, I’d like to change the top level menu items that have children to ‘optgroup’ elements so I can style them (and make them un-clickable) & could use some guidance (I’m a jQuery noob).
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘[Plugin: Dropdown Menus] Get rid of 'blanking' title; change some items to optgroup’ is closed to new replies.