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 are the basic selectors in jQuery?

0 Answers  


What are the four parameters used for jQuery Ajax method?

0 Answers  


Explain the difference between .js and .min.js?

0 Answers  


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

0 Answers  


How to get the direct parent of an element using ?

0 Answers  


Explain the use of each function in jquery?

0 Answers  


How to write cookies in jquery?

0 Answers  


How to use migrate jquery plugin if possible? : jquery mobile

0 Answers  


What is the difference between prop() and attr() in jquery?

0 Answers  


Whether jQuery HTML work for both HTML and XML documents?

0 Answers  


Why jQuery is needed?

0 Answers  


What are the selectors in jquery? How many types of selectors in jquery?

0 Answers  


Categories