Aleš Sýkora wrote

Best practise for jQuery in Toolset

3. 7. 2019 in

Let me explain best practices for using jQuery inside a View, Form or Content Template’s JS panel.

  1. Always wrap your jQuery code in a document ready handler,
  2. Always use “jQuery” instead of “$” unless you know what you’re doing.


  // add your code here using "jQuery" instead of "$"

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Toggle Table Row with jQuery (usable in Toolset)
31. 12. 2019 in
If you want toggle to open a new row in the table, then you need to use some jQuery with Toolset again. First – create the table (you can use it in view, content tempate, etc.). All credit for this example goes to jsfiddle: And use it with this jQuery script. Do not forget […]
Read More
Aleš Sýkora wrote
Particles.js in Oxygen Builder
Particles.js is a lightweight JavaScript library for creating particles. Particles are used to create interactive backgrounds that respond to the mouse movements. Do you want to use it on you Oxygen website? Okay, no problem. You just need to embed the particles.js script – I will do that with the Advanced scripts plugin – and […]
Read More
Aleš Sýkora wrote
Custom markup for WordPress Custom Post types
26. 9. 2019 in
Learn how to add markup with JSON-ld and WordPress and create your own unique plugin.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram