InterviewSolution
Saved Bookmarks
| 1. |
The method releases jQuery’s control of $ is __________(a) $.param()(b) $.noConflict()(c) each()(d) data()This question was addressed to me during an interview.Origin of the question is Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML |
|
Answer» RIGHT option is (b) $.noConflict() Explanation: $.noConflict() method releases control of $ in jQuery. A REFERENCE to jQuery is returned by noConflict() method. E.g. VAR ty=$.noConflict(); ty(DOCUMENT).ready(function()) { ty(“button”).click(function() {ty(“h”).text(“It is working!”);}); });. $.param() jQuery AJAX method is the representation of an object or array. An each() method particularize function to run for every matched ELEMENT. data() method either connects data to selected elements or get data from them. |
|