Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between $('div') and $('<div/>') in jQuery?



What is the difference between $('div') and $('<div/>') in jQuery?..

Answer / chaitanya

$('<div/>') : This creates a new div element. However this is not added to DOM tree unless you don't append it to any DOM element.

$('div') : This selects all the div element present on the page.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Can you write a jquery code to select all links inside the paragraph?

0 Answers  


How do you select element by ID in jQuery?

1 Answers  


What is the difference between $.map and $.grep in jQuery?

0 Answers  


Explain "beforesend(xhr)" paremeter of jquery ajax method?

0 Answers  


Explain the each() function?

0 Answers  


How can we debug jQuery?

0 Answers  


Can you call C# code-behind method using jQuery? If yes,then how?

1 Answers  


Why is the block display style used for animations?

0 Answers  


What is .detach()? : jquery mobile

0 Answers  


Why is only the first page of multi page document loaded? : jquery mobile

0 Answers  


Differentiate between jquery.size and jquery.length? : jQuery Mobile

0 Answers  


Explain the types of selectors in jquery?

0 Answers  


Categories