- Get Help
Back to top
Back to top
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Related content:
Question
Highlight Tab and Menu
Question
Highlight menu on load
Question
Menu Bar hover is not working
Question
On Mouse Hover Menu highlights doesn't work
Question Solved
Accessibility active yellow highlights
Question
Border highlight issue
Question
Highlight Grid
Question
Highlight the row in the workbasket
Question
First row of the repeat grid highlighted automatically
Question Solved

Hello Thommees,
I didn't get a chance to test the below code, but I believe this could be helpful for your use-case.
JS needs to be added:-
// Adds the "ui-state-highlight" class to the selected item. Also
// requires some theme CSS adjustments.
$( "#menu" ).menu({
select: function( e, ui ) {
// Remove the highlight class from any existing items.
$( this ).find( "a.ui-state-highlight" )
.removeClass( "ui-state-highlight" );
// Adds the "ui-state-highlight" class to the selected item.
ui.item.find( "> a" )
.addClass( "ui-state-highlight ui-corner-all" );
}
});
CSS needs to be added:-
/* Global settings */
body {
font-size: 0.8em;
}
/* jQuery UI theme settings */
.ui-menu .ui-menu-item {
margin: 1px 0;
border: 1px solid transparent;
}
.ui-menu .ui-menu-item a.ui-state-highlight {
font-weight: normal;
margin: -1px;
}
/* Demo settings */
#menu {
width: 30%;
}
Please modify the code/CSS as per your need and test its applicability for your scenario.
Regards,
Ajit