Hello guys , i have an issue , my jquery code works on safari but when i go on chrome or any other web browsers it dosen't work .
I tried to edit my code but still nothing is working .
I do not know where it comes from, the code is quite simple that's why i dont really understand .
My code :

First of all the link you supplied is broken. Secondly if you have included the JQUERY library reference it should work on Firefox, Firefox seems to be the only reliable browser that allows Javascript as well as JQUERY whereas the rest of the browsers will require some sort of hack due to their policies. In my case I had to make use of the event Listener.

Try using the event listener so that it will trigger when a user perform and click event it can be mouse click or keyboard click. That should be your starting point for cross browser support. But I'm sure Firefox wont require that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.