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

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

1 Answers  


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

0 Answers  


Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?

0 Answers  


Whether jQuery HTML work for both HTML and XML documents?

0 Answers  


What are the advantage of using minimized version of jquery?

0 Answers  


Explain .empty() vs .remove() vs .detach() in jquery

0 Answers  


Can jquery be used to make an ajax request?

0 Answers  


How to use jquery?

0 Answers  


Define cache paremeter of jquery ajax method?

0 Answers  


What is the difference between event.PreventDefault and "return false"?

1 Answers  


Define each() function in jquery?

0 Answers  


Explain jquery $.ajax() method?

0 Answers  


Categories