$(document).ready(function(){
$(".menu-button").click(function(){
$(".menu-items").toggleClass('display');
});
});
jQuery("ul li").append("<hr/>");
The first 5 lines work I tested them. But the last line :
jQuery("ul li").append("<hr/>");
does not work.
A solution using CSS below works.
ul li:after {
content: "";
display: block;
height: 1px;
width: 400%;;
margin: 10px;
background: grey;
}
But I had an issue with it, let’s just focus on jQuery now.
So any idea why :
jQuery("ul li").append("<hr/>");
does not work?
Thanks