Mobile app version of vmapp.org
Login or Join
Angie530

: Why does my element work on first click but not second click? I set up a CSS dynamic snippet on my site and it behaving strangely, when you click on the icons it works, but if you click

@Angie530

Posted in: #Css

I set up a CSS dynamic snippet on my site and it behaving strangely, when you click on the icons it works, but if you click twice it scrolls up a few pixels up.

Click on the 5 icons repeatedly and you will see that they work on fist click but not on the second consecutive click, something wrong with the toggle?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Angie530

2 Comments

Sorted by latest first Latest Oldest Best

 

@Reiling115

You are trying to use Jquery which is a javascript library/extension. Before calling the $ function you may need to use jQuery.noConflict(); Usually these types of errors are related to conflicts between javascript libraries/extensions/modules/etc.

10% popularity Vote Up Vote Down


 

@Pierce454

You are getting an error Uncaught TypeError: $ is not a function on line 1410 which is $(document).ready(function(){

That is likely the cause. Fix that and then see what happens

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme