jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. It is great for building UI interfaces for the webpages. The jQuery UI Menu widget creates a menu list that is used for mouse and keyboard interactions.
The jQuery UI menu previousPage() method is used to move the active state to the first menu item above the top of the scrollable menu. It holds the event that triggered the focus to move the menu item.
$( ".selector" ).menu( "previousPage" );
CDN Link: First, add jQuery UI scripts needed for your project.
Please Login to comment...