+ 1
JQuery need help
Can somebody write this Javascript code in JQuery please? https://code.sololearn.com/WeQDhWK89OaP/#css
6 Respostas
+ 6
$(".nav-menu").toggleClass("change");
http://api.jquery.com/toggleclass/
+ 16
function myFunction(){ $('nav-menu').toggleClass('change'); }
the function doen't need arguments.
+ 16
here is the code
https://code.sololearn.com/Wudxkhlx0FgH/?ref=app
+ 2
not working. can you please put the whole code in the code playground and send me the link please?
+ 2
I have tried that but it doesn't work idk why
+ 2
alright it's working thanks