Ruby On Rails

How to use AJAX and JQuery on same page

If you are about to use AJAX and JQuery coding on the same page, it won’t work. Don’t worry. Here is the solution, Add this line on your layout or view file, wherever necessary <head> <script type=”text/javascript”>JQuery.noConflict();</script> </head> and then, When calling jquery use ‘jQuery’ instead of ‘$’ When calling lightbox(ajax) use ‘document.getElementById’ instead of… Continue reading How to use AJAX and JQuery on same page