Converting Dollar sign ($) to jQuery

Some jQuery files are coded by dollar sign ($). That’s why It conflicts with php and other files. And then the jQuery file doesn’t work. Solve this problem Whole dollar signs ($) need to convert into ‘jQuery’. If there are plenty of dollar signs, This is very tough to convert and find the whole files. So to solve this difficulties there is a simple solution. Just follow the roles.

Go to your jQuery file and write this code before the beginning of whole codes,

(function($) {

Then go to the bottom of the file and in last of whole codes Write this code,

}) (jQuery);

Leave a Reply