I noticed that a certain script I use relies on prototype. (Lightbox 2) Will it work together on the same page as jQuery? Is there way to make sure that they don;t conflict?
You can but you need to take special steps if you're using the $() special function. Basically it comes down to the order you call libraries and/or calling jQuery.noConflict().
Use jQuery.noConflict so that you are required to make calls using the jQuery object explicitly (i.e. jQuery('#selector') instead of the $ alias.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With