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

How to get the value of selected option in jquery?

0 Answers  


How can you select all elements in a page using jquery?

0 Answers  


Why do we use jquery? : jquery mobile

0 Answers  


Explain the animate function.

0 Answers  


What is the difference between bind() and live() function in jquery?

0 Answers  


What is a filter in jquery? Explain

0 Answers  


Can you give me a brief history of your programming days? Where did it all start?

0 Answers  


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

0 Answers  


How can I select 20th div with jquery?

0 Answers  


What is jQuery.noConflict?

1 Answers  


Differentiate among .empty() vs .remove() vs .detach() in jquery.

0 Answers  


What is meant by the term ‘theming’ in jquery mobile? : jQuery Mobile

0 Answers  


Categories