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

Does jQuery 2.0 supports IE?

3 Answers  


How do you stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements?

1 Answers  


What is serialize() in jquery?

0 Answers  


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

0 Answers  


Tell me what does $("div") will select? : jquery mobile

0 Answers  


What are selectors in jquery? : jQuery Mobile

0 Answers  


differentiate between bind() vs live() vs delegate() methods in jquery.

0 Answers  


Can we have multiple document.ready() function on the same page?

1 Answers  


How do you get the text value of a selected option?

0 Answers  


Tell me how to write browser specific code using jquery? : jquery mobile

0 Answers  


What methods used to provide effects?

0 Answers  


Explain some features of jquery knockout?

0 Answers  


Categories