IT:AD:DokuWiki:HowTo:Work With JS/JQuery
Summary
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 ##