+ 1

JQuery need help

Can somebody write this Javascript code in JQuery please? https://code.sololearn.com/WeQDhWK89OaP/#css

29th Apr 2017, 8:28 PM
theBlueGHOST
theBlueGHOST - avatar
6 ответов
+ 6
$(".nav-menu").toggleClass("change"); http://api.jquery.com/toggleclass/
29th Apr 2017, 10:34 PM
Burey
Burey - avatar
+ 16
function myFunction(){ $('nav-menu').toggleClass('change'); } the function doen't need arguments.
29th Apr 2017, 10:32 PM
Ulisses Cruz
Ulisses Cruz - avatar
29th Apr 2017, 10:40 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
not working. can you please put the whole code in the code playground and send me the link please?
29th Apr 2017, 10:34 PM
theBlueGHOST
theBlueGHOST - avatar
+ 2
I have tried that but it doesn't work idk why
29th Apr 2017, 10:35 PM
theBlueGHOST
theBlueGHOST - avatar
+ 2
alright it's working thanks
29th Apr 2017, 10:38 PM
theBlueGHOST
theBlueGHOST - avatar