I'm uploading code from my project to Plunker. You can see it here. When I run the code through a local server and render it in Chrome, the functionality works fine. When I try to run it through Plunker the code fails.
This snippet is inside of script.js
:
$('.navbar-toggle').click(function(){
alert('test1');
if ($(this).hasClass('login')) {
$('.navmenu-style1').css("z-index","1");
$('.navmenu-style').css("z-index","0");
}
else {
$('.navmenu-style1').css("z-index","0");
$('.navmenu-style').css("z-index","1");
}
});
How can I make it work in Plunker please? Is there a more universal bit of code that I can use or am I simply doing something wrong?
Cheers