Jquery Conflict

Well, I’m happy that I’m back with a small topic. It’s very often that while working with multiple Jquery framework we end-up in conflicting those jquery framework; means when we want to run some application smoothly, the loaded jquery frameworks start fighting among themselves and attains a deadlock state. I’m using jquery tabs UI for an example.
Since, preventions is better than cure. šŸ˜‰

Solution #1

The conflict is avoided just by creating a object for the a jquery function ‘noConflict()’ and then using when/ wherever we are using our other jquery code for the application.

Solution #2
Replace ‘$’ by ‘jQuery’ in the JS file/ script. But remember ‘jQuery’ is case sensitive. This jquery conflict solution is also helpful in WordPress jquery conflict error.

Thanks for reading this post and as usual, Iā€™m open to suggestion and critics (positive of course).
Do comment on!

last update: 18-10-2012


Post Author: Shreyo

is a developer & involved in project management; loves to learn, guide and keep himself updated on UI/UX and WordPress. He is also an amateur photographer mostly macro shots.