What is noconflict in jquery
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Usually jquery will use $ sign for shorcut in Jquery. if more than one javascript library(backbone,angular etc) is using in a webpage. In this case if we use $ sign as shortcut.Suppose if two framework use the $sign as shortcut in that one will stop working. to handle this we will use 'noconflict' More clarification see the below example var mytest=$.noConflict(); mytest(document).ready(function() { mytest("button").click(function() { alert('testing noconflict'); )}; )}; |