Home » , » jQuery Interview Questions

jQuery Interview Questions

Written By 1 on Monday, September 5, 2011 | 6:42 PM

jQuery Interview Questions

1) What are selector
2) What do following lines
jQuery(document).ready(function(){});
3)how to select all the checkbox having class "chk"
4) what does do
jQuery.extend()
5) What is jQuery unbind?

Merge the contents of two or more objects together into the one/first object.
Syntax: jQuery.extend( [ deep ], targetobject, [ object List] )

Example
Code:
 var object1 = {   apple: 0,   banana: {weight: 52, price: 100},   cherry: 97 }; var object2 = {   banana: {price: 200},   durian: 100 }; $.extend(object1, object2); toSource is used to print the values of object Code: var object1 = {   apple: 0,   banana: {weight: 52, price: 100},   cherry: 97 }; alert(object1.toSource());

0 Comment:

Post a Comment