$('#content #home nav #navigationList li:nth-child(2) a').trigger("click");
$('#content #home nav #navigationList li:nth-child(2) a').css("background", "red");
I'm trying to create an event trigger click on an "" the secletor work pretty well in the console of firefox but not in my js file. The same selector with a .css() work without any problem. Need some help can someone explain me why.
My problem is my navigation bar
i wanted this http://gontranachille.com/en/about about is not a folder it is a section in a singlepage website i wanted if the user put this link http://gontranachille.com/en/about the website scroll automatically to the section i manage to do it it work with the css color change but not with the trigger and it is the same selector and in the console of firefox it works also......