cycling jQuery_Succinctly | Page 28

Creating an alias by renaming the jQuery object itself jQuery provides the noConflict() method, which has several uses—namely, the ability to replace $ with another alias. This can be helpful in three ways: It can relinquish the use of the $ sign to another library, help avoid potential conflicts, and provide the ability to customize the namespace/alias for the jQuery object. For example, let's say that you are building a Web application for company XYZ. It might be nice to customize jQuery so that instead of having to use jQuery('div').show() or $('div').show() you could use XYZ('div').show() instead. Sample: sample15.html
Syncfusion., Inc.
Notes: By passing the noConflict() function a Boolean value of true, you can completely undo what jQuery has introduced into the Web page. This should only be used in extreme cases because it will, more than likely, cause issues with jQuery plugins. Using .each() when implicit iteration is not enough Hopefully, it is obvious that if you have an HTML page (example below) with three empty
elements, the following jQuery statement will select all three elements on the page, iterate over the three elements (implicit iteration), and will insert the text "I am a div" in all three
elements. Sample: sample16.html
28