Vertical Menu jQuery Program

Vertical Menu jQuery Cognizant Handson Program

Design an html page which should contain a vertical menu using a div tag.   Inside the div, a menu is created by using <ul>, <li> and <a> tags of HTML.

menu.js

//WRITE YOUR jQUERY CODE HERE

var element = $('div > ul >li >a')
$("#each_ex").click(function(){
  element.css('background-color','red')
  $('#msg_ex').append('Home<br>Products<br>Services<br>About<br>Contact')
});

Similar Posts