Resolve Conflict between Jquery.js and Prototype.js
anoopsachari | Apr 07, 2010 | Comments 12
How to resolve conflict between jquery.js and prototype.js
This tutorial would teach you to resolve the coflict between jquery and prototype when used together in same file .
Its a simple tip to implement .
1. Create a noconflict.js file and include the following code in it .
jQuery.noConflict(); var $j = jQuery;
2. Include the js files in the same order as shown below
<script src=”js/prototype.js” type=”text/javascript”></script>
<script src=”js/jquery-1.3.2.min.js” type=”text/javascript”></script>
<script src=”js/noconflict.js” type=”text/javascript”></script>
You have fixed it !
Filed Under: javascript
About the Author: a holistic web developer , movie buff and technical blogger from queen of arabian sea.







Thanks for solving my prob. and giving me such valuable info.
That Sounds interesting, i agree with you. Please keep at your good work, I would come back often.
Great Web site! I was wondering if I could site some of your site and use a few points for health. Please email me if its ok or not. Thanks
I got the conflict between jquery.js and prototype.js fixed. Thanks for that! Any solution to fix this one?
Webpage error details
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://www.onlyheavymetal.com/members/autosuggest/tags.php
Thanks for you help. My problem is solved
it’s not working i use libraries as follows
i am having problem in table sorter and quicksearch plugin.
and at the same time i am using 1.8.3custom.js for dialog popup.
so if i use 1.2.3.js for quick search i.e. filtering then sorting,popup doesnt work.
tried many possible thing but not getting it.and also having Two CSS links.
so canu help…….?
I have same problem with conflict…
please help me
my code
thanks you very much!
i was tried, but its not working can you explain brief?
Thanks..!!! helped me a lot!!
Solved very quickly and a lot less complex coding….
Open the conflicting jquery file in a text editor.
find “$”
replace with “$j”
save the file
Done!