Could someone list some real life examples of conflicts using $ sign instead of jQuery.
As i have heard, it can create issues if another js library(ies) are used.
So better to use jQuery for jQuery plugins?
Some links to detailed explanations are welcome. 🙂
Thanks 😉
If jQuery is the only Javascript library you’re using, then go ahead and use
$, it won’t hurt.If you’re using more than one Javascript library (which honestly, I wouldn’t recommend, but hey, up to you), then you have a couple of options:
jQuery.$via closures, like so: