Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please help convert jquery code to js!

What I have tried:

JavaScript
jQuery(document).ready(function($) {
	jQuery('.stellarnav').stellarNav({
				//
	});
});
Posted
Updated 13-Sep-19 3:54am

StellarNav is a jQuery plug-in so you can't convert it to js.
 
Share this answer
 
Comments
annasha 13-Sep-19 9:19am    
Yes... is there a mega-menu without jquery??
F-ES Sitecore 13-Sep-19 9:20am    
Probably, try google
StellarNav is just a jQuery plugin for a multi-level drop-down menu; so you may want to Google that to see how to do it yourself; without a plugin.

Way back in the turn of the century, Dynamic Drive was a prime source of menus before JQuery was a thing
Dynamic Drive DHTML Scripts- Chrome CSS Drop Down Menu[^]

A List Apart is always a good reference, here's an article on building with JS + CSS:
Suckerfish Dropdowns – A List Apart[^]

Then there is Stu Nicholls, who does all sorts of neat stuff with just CSS, like menus
Stu Nicholls | CSS PLAY | CSS only menus[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900