Is there a way to hide the submenu icon for the jQuery UI menu widget? The default value is set to ui-icon-carat-1-e.
$(document).ready(function(){
$(function() {
$( "#menu" ).menu({
icons: {
submenu: false
}
});
});
});
I have been trying to find a solution to this seemingly simple issue, but unfortunately, I can't seem to figure it out.
Thank you for any help or suggestions you can provide.
EDIT: Sharing my HTML code below:
<ul id="menu" style="z-index:1">
<li><a href="#"><span class="ui-icon ui-icon-info" style="margin: 3px 0 0 4px;"></span>Information </a>
<ul>
<li><a href="?site=something"><span class="ui-icon ui-icon-star" style="margin: 2px 0 0 4px;"></span>Something</a></li>
<li>...</li>
...
</ul>
</ul>
And here is the code after jQuery has processed it:
<ul id="menu" class="ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons" style="z-index:1" role="menu" tabindex="0" aria-activedescendant="ui-id-152">
<li class="ui-menu-item" role="presentation">
<a id="ui-id-152" class="ui-corner-all" href="#" aria-haspopup="true" tabindex="-1" role="menuitem">
<span class="ui-menu-icon ui-icon ui-icon-carat-1-e"></span>
<span class="ui-icon ui-icon-info" style="margin: 3px 0 0 4px;"></span>
Information
</a>
<ul class="ui-menu ui-widget ui-widget-content ui-corner-all" style="display: none; top: 31px; left: 20px;" role="menu" aria-expanded="false" aria-hidden="true">
<li class="ui-menu-item" role="presentation"> … </li>
<li class="ui-menu-item" role="presentation"> … </li>
<li class="ui-menu-item" role="presentation"> … </li>
<li class="ui-menu-item" role="presentation"> … </li>
I am looking to remove the span class="ui-menu-icon ui-icon ui-icon-carat-1-e" to get rid of the unwanted submenu icon.
Thank you, Alex