This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
What Is The Difference Between Jquery.size() And Jquery.length? |
|
Answer» Jquery.size() and jquery.length both RETURNS the NUMBER of ELEMENT found in the object. But, jquery.length is faster than jquery.size() because size() is a method but length is a property. Jquery.size() and jquery.length both returns the number of element found in the object. But, jquery.length is faster than jquery.size() because size() is a method but length is a property. |
|
| 52. |
What Is The Use Of .size() Method In Jquery? |
|
Answer» Jquery's .SIZE() method returns NUMBER of ELEMENT in the OBJECT. That means that you can count the number of elements within an object. Jquery's .size() method returns number of element in the object. That means that you can count the number of elements within an object. |
|
| 53. |
How Can You Call A Method Inside Code-behind Using Jquery? |
|
Answer» By $.AJAX and by DECLARING METHOD a WebMethod By $.ajax and by declaring method a WebMethod |
|
| 54. |
Can You Call C# Codebehind Method Using Jquery? |
|
Answer» Yes Yes |
|
| 55. |
Jquery Html() Method Works For Both Html And Xml Documents? |
|
Answer» It only works for HTML |
|
| 56. |
How To Select Combobox Selected Value And Text Using Jquery? |
|
Answer» var StateID = $("#StateCbx").VAL(); // Or you can USE it $("#iStateID").val(); var StateName = $("#StateCbx option:selected").text(); alert("Selected COMBOBOX text is= " + StateName + " and value is= " + StateID); var StateID = $("#StateCbx").val(); // Or you can use it $("#iStateID").val(); var StateName = $("#StateCbx option:selected").text(); alert("Selected combobox text is= " + StateName + " and value is= " + StateID); |
|
| 57. |
Name Any Four Parameter Of Jquery Ajax Method? |
|
Answer» URL : Specifies the URL to send the request to. DEFAULT is the current page type : Specifies the type of request. (GET or POST) data : Specifies data to be sent to the SERVER cache: A Boolean value indicating whether the BROWSER should cache the requested pages. Default is true beforeSend(xhr): A function to run before the request is sent url : Specifies the URL to send the request to. Default is the current page type : Specifies the type of request. (GET or POST) data : Specifies data to be sent to the server cache: A Boolean value indicating whether the browser should cache the requested pages. Default is true beforeSend(xhr): A function to run before the request is sent |
|
| 58. |
What Is Jquery $.ajax() Method? |
|
Answer» The JQUERY ajax() METHOD is used to perform an AJAX (asynchronous HTTP) request. The Jquery ajax() method is used to perform an AJAX (asynchronous HTTP) request. |
|
| 59. |
What Is Difference Between Jquery's Ready And Holdready? |
|
Answer» jQuery's ready is an event which gets triggered automatically when DOM is ready while HOLDREADY is a signal/flag to HOLD this triggering. holdReady was included in 1.6 version and it works only if USED before the execution/triggering of ready event. Once ready event is fired, it has nothing to do. It is useful in DYNAMICALLY loading scripts before the ready starts. It release ready event execution when used with a true parameter. jQuery's ready is an event which gets triggered automatically when DOM is ready while holdReady is a signal/flag to hold this triggering. holdReady was included in 1.6 version and it works only if used before the execution/triggering of ready event. Once ready event is fired, it has nothing to do. It is useful in dynamically loading scripts before the ready starts. It release ready event execution when used with a true parameter. |
|
| 60. |
When And Who Founded Jquery ? |
|
Answer» JQUERY was FOUNDED by JOHN Resig in JANUARY 2006. jQuery was founded by John Resig in January 2006. |
|
| 61. |
Which Sign Does Jquery Use As A Shortcut For Jquery ? |
|
Answer» $ EXAMPLE: $("#DIV").CSS('color','red'); $ example: $("#div").css('color','red'); |
|
| 62. |
Is Jquery A W3c Standard ? |
|
Answer» No. No. |
|
| 63. |
What Does $("div") Will Select ? |
|
Answer» This will SELECT all the DIV ELEMENTS on PAGE. This will select all the div elements on page. |
|
| 64. |
What Are Jquery Selectors ? |
|
Answer» Selectors are USED in JQUERY to FIND and select DOM elements via id, CLASS or element selector. There are many new selectors introduced in jQuery. Using jQuery selectors DOM elements can be selected and manipulated. Selectors are used in jQuery to find and select DOM elements via id, class or element selector. There are many new selectors introduced in jQuery. Using jQuery selectors DOM elements can be selected and manipulated. |
|
| 65. |
How To Select Element Having A Particular Class (".selected") ? |
|
Answer» $('.selected') $('.selected') |
|
| 66. |
How Can You Select All Elements In Page Using Jquery ? |
|
Answer» We can USE all selector to select all elements on PAGE. EXAMPLE : $('*') We can use all selector to select all elements on page. example : $('*') |
|
| 67. |
What Are The Slow Selectors In Jquery ? |
|
Answer» class selectors are the SLOW compare to ID and element. class selectors are the slow compare to ID and element. |
|
| 68. |
Name The Method Use To Hide Selected Elements On Ui ? |
|
Answer» HIDE(). hide(). |
|
| 69. |
What Are The Features Of Jquery In Short ? |
|
Answer» EFFECTS and ANIMATIONS, AJAX, EXTENSIBILITY. Effects and Animations, Ajax, Extensibility. |
|
| 70. |
What Is The Name Of Jquery Method For An Asynchronous Http Request ? |
|
Answer» jQuery.ajax() jQuery.ajax() |
|
| 71. |
Is It Possible To Use Jquery Together With Ajax? |
|
Answer» Yes. Yes. |
|
| 72. |
How To Set Page Title Using Jquery ? |
|
Answer» ANSWER : $(functio() { $(DOCUMENT).ATTR('title','20fingers2Brains'); }); |
|
| 73. |
What Is The Advantage Of Using Minified Version Of Jquery Rather Than Using The Conventional One ?? |
|
Answer» The ADVANTAGE of using a minified version of jQuery FILE is EFFICIENCY. The efficiency of page increases as minified version is small in size and TAKES LESS time to load. The advantage of using a minified version of jQuery file is efficiency. The efficiency of page increases as minified version is small in size and takes less time to load. |
|
| 74. |
What Is The Difference Between .js And .min.js ? |
|
Answer» min.js is basically the minified version of .js file. Both the FILES are same as far as functionality is concerned. .min.js is USED to increase the page performance as it is small in SIZE COMPARE to .js and takes less time to LOAD. min.js is basically the minified version of .js file. Both the files are same as far as functionality is concerned. .min.js is used to increase the page performance as it is small in size compare to .js and takes less time to load. |
|
| 75. |
Can We Use Our Own Specific Character In The Place Of $ Sign In J Query? |
|
Answer» You can CREATE your own shortcut very easily. The noConflict() method returns a reference to jQuery, that you can SAVE in a VARIABLE, for later use. You can create your own shortcut very easily. The noConflict() method returns a reference to jQuery, that you can save in a variable, for later use. |
|
| 76. |
What Is Jquery Ui ? |
|
Answer» JQUERY UI is a LIBRARY which is built on TOP of jQuery library. jQuery UI comes with cool WIDGETS, effects and interaction mechanism. jQuery UI is a library which is built on top of jQuery library. jQuery UI comes with cool widgets, effects and interaction mechanism. |
|
| 77. |
What Is Difference Between Document.ready() And Onload() ? |
|
Answer» document.ready() FUNCTION can be inlcuded multiple times whereas onload() method can be called only once in a page. document.ready() is called as soon as DOM is LOADED while onload is called when everything is loaded on page i.e. IMAGES, DOM and other resources associated with the page. document.ready() function can be inlcuded multiple times whereas onload() method can be called only once in a page. document.ready() is called as soon as DOM is loaded while onload is called when everything is loaded on page i.e. images, DOM and other resources associated with the page. |
|
| 78. |
How To Debug Jquery ? |
|
Answer» ADD the keyword debugger to the line from where we WANT to start the DEBUGGING. $(functio() { debugger; $(DOCUMENT).ATTR('title','20fingers2Brains'); });Add the keyword debugger to the line from where we want to start the debugging. |
|
| 79. |
What Does Size Method Of Jquery Returns ? |
|
Answer» It RETURNS the number of ELEMENTS in the object. This METHOD HELPS in finding the COUNT of elements in the object. It returns the number of elements in the object. This method helps in finding the count of elements in the object. |
|
| 80. |
What Is The Use Of J Query Load() Method ? |
|
Answer» The JQUERY load() method is powerful AJAX method. The load() method loads DATA from a server and puts the returned data into the selected element without RELOAD the COMPLETE page. The jQuery load() method is powerful AJAX method. The load() method loads data from a server and puts the returned data into the selected element without reload the complete page. |
|
| 81. |
What Is Difference Between Remove And Detach Method ? |
|
Answer» detach method is same as remove method , but detach KEEPS the JQUERY DATA ASSOCIATED with the removed elements. detach method is more powerful when you have to reinsert the removed data. detach method is same as remove method , but detach keeps the jQuery data associated with the removed elements. detach method is more powerful when you have to reinsert the removed data. |
|
| 82. |
Jquery Is Replacement Of Java Script? |
|
Answer» NO NO |
|
| 83. |
Name The 5 Jquery Events? |
|
Answer» Answer : JQUERY Events jQuery click() EVENT. jQuery dblclick() event. jQuery mouseenter() event. jQuery mouseleave() event. jQuery MOUSEDOWN() event. jQuery mouseup() event. jQuery hover() event. jQuery focus() and BLUR() events. |
|
| 84. |
Can We Use Our Own Specific Character In The Place Of $ Sign In Jquery? |
|
Answer» <P>Yes, You can also CREATE your own shortcut very easily. The noConflict() method returns a reference to jQuery, that you can save in a variable, for LATER use. Here is an example: Code: var vikas = $.noConflict(); vikas(document).ready(function(){vikas("button").click(function(){ vikas("p").text("jQuery is still working!"); }); }); Yes, You can also create your own shortcut very easily. The noConflict() method returns a reference to jQuery, that you can save in a variable, for later use. Here is an example: Code: |
|
| 85. |
What Is The Use Of Jquery Load() Method? |
|
Answer» The jQuery LOAD() method is a powerful AJAX method. The load() method loads data from a server and puts the RETURNED data into the selected element without reload the COMPLETE page. Example:The following example loads the CONTENT of the file "demo_test.txt" into a specific element $("#div1").load("demo_test.txt"); The jQuery load() method is a powerful AJAX method. The load() method loads data from a server and puts the returned data into the selected element without reload the complete page. Example:The following example loads the content of the file "demo_test.txt" into a specific element $("#div1").load("demo_test.txt"); |
|
| 86. |
Tell The Name Of Jquery Method Which Is Used To Perform An Asynchronous Http Request? |
|
Answer» jQuery.ajax() jQuery.ajax() |
|
| 87. |
Can We Use Both Jquery And Ajax Together? |
|
Answer» yes yes |
|
| 88. |
What Is The Use Of Attr() Method In Jquery? |
|
Answer» The attr() method sets or returns attributes and VALUES of the selected elements. When this method is used to return the ATTRIBUTE value, it returns the value of the first MATCHED element. When this method is used to set attribute values, it sets ONE or more attribute/value pairs for the set of matched elements. Code: $(selector).attr(attribute) //it will return the value of an attribute The attr() method sets or returns attributes and values of the selected elements. When this method is used to return the attribute value, it returns the value of the first matched element. When this method is used to set attribute values, it sets one or more attribute/value pairs for the set of matched elements. Code: $(selector).attr(attribute) //it will return the value of an attribute |
|
| 89. |
Name The Jquery Methods Which Are Used For Apply Css Class? |
|
Answer» $("#ID1").addClass('YourClassName'); // for APPLY CLASS $("#Id1").addClass('YourClassName'); // for apply class |
|
| 90. |
Name The Jquery Method Which Is Used To Hide Selected Elements? |
|
Answer» .HIDE() .hide() |
|
| 91. |
Write The Code For Setting Datetimepicker On Textbox Click? |
|
Answer» If below is our TEXTBOX <input type="text" id="abc" name=%26quot%3Bacc%26quot%3B value="SELECT Date" /> then Jquery code will be $("#abc").DATEPICKER(); If below is our textbox <input type="text" id="abc" name=%26quot%3Bacc%26quot%3B value="Select Date" /> then Jquery code will be $("#abc").datepicker(); |
|
| 92. |
How Check Currently Loaded Jquery Ui Version On The Page? |
|
Answer» // RETURNS JQUERY UI VERSION or UNDEFINED $.ui.version // Returns jQuery UI version or undefined $.ui.version |
|
| 93. |
How To Check Jquery Ui Loaded Or Not? |
|
Answer» // Checking if JQUERY UI is LOADED or not Code: if($.ui){ // jQuery UI is loaded }ELSE { // jQuery UI is not loaded }// Checking if jQuery UI is loaded or not Code: |
|
| 94. |
What Are Features Of Jquery? |
|
Answer» Features of Jquery
Features of Jquery |
|
| 95. |
Is Jquery A Library For Client Scripting Or Server Scripting? |
|
Answer» Client Script |
|
| 96. |
What Are The Advantages Of Using Jquery Over Javascript In Asp.net Web Application |
|
Answer» Below are the ADVANTAGES of using J Qery over JavaScript
Below are the advantages of using j Qery over JavaScript
|
|
| 97. |
Write The Code For Select Second Last Div Element? |
|
Answer» CODE for second last div : $("div.questions > div::nth-last-child(2)").css("color", "RED"); Code for second last div : $("div.questions > div::nth-last-child(2)").css("color", "red"); |
|
| 98. |
Where Jquery Code Execute? On Client Browser Or Server Browser? |
|
Answer» On client browser |
|
| 99. |
Which One Is Faster Jquery Id Selector Or Javascript Getelementbyid()?(jquery Id Selector Vs Javascript Getelementbyid()) |
|
Answer» JAVASCRIPT getElementById() is FASTER than JQUERY ID ($("#elementID")) SELECTOR JavaScript getElementById() is faster than Jquery Id ($("#elementID")) selector |
|
| 100. |
What Are The Slower Selectors In J Query? |
|
Answer» Class selectors are slower |
|