IT:AD:DokuWiki:HowTo:Work With JS/JQuery

JQuery is by default turned on in DokuWiki – but the syntax is slightly different.

Instead of using the $() shorthand syntax for Jquery, you have to use the full blown jQuery object.

In other words, instead of:

$(document).ready(function() {
  d3.select("#ex01").select("p").style("color","red");
});

You have to:

jQuery(document).ready(function() {
  d3.select("#ex01").select("p").style("color","red");
});

notice that it's jQuery -- not JQuery...

## Resources ##

  • /home/skysigal/public_html/data/pages/it/ad/dokuwiki/howto/work_with_js_jquery.txt
  • Last modified: 2023/11/04 01:41
  • by 127.0.0.1