Make menu in menu list using JavaScript

How to make menu in menu list in front end ?

Menu in menu list:

<link href=””rel=”stylesheet”/&gt;


in HTML , I made this script like:

<ul class=”nav” id=”main-menu”>



in JavaScript, I made this script like :

var list = document.createElement(“li”);


“<a href=\”#\”>List<span class=\”fa arrow\”></span></a>”

+”<ul class=\”nav nav-second-level\”>”

+”<li><a href=\”groupMerchant\”>Group Merchant</a></li>”




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s