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

Differentiate between calling stop (true, true) and finish method?

0 Answers  


What is the difference between $(this) and 'this' in jquery?

0 Answers  


Explain how jquery works?

0 Answers  


How do you add an HTML element in DOM tree?

0 Answers  


How can related code be encapsulated?

0 Answers  


How to get the direct parent of an element using ?

0 Answers  


What is $() in jquery?

0 Answers  


What are the advantages of jQuery?

0 Answers  


What are the guidelines for an application to follow the principles of progressive enhancement.

0 Answers  


What is the use of jquery.data()?

0 Answers  


Explain some benefits of jquery knockout?

0 Answers  


Need to add jQuery file in both Master and Content page?

0 Answers  


Categories