Thursday, 3 September 2015

Replace default jquery $ sign


Using this method  we can change $ sign in jquery .

var Ankit =jQuery.noConflict();
Now i will use Ankit("#DIVID").val('I have change $ sign to my Name');
* You can't use # or @ as these are not valid variable names
* Names can only contain contains letters, numbers, $ and underscores so no spaces or other special characters

No comments:

Post a Comment