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 use of param() method in jquery .

0 Answers  


Differentiate between width() vs css(‘width’) in jquery

0 Answers  


What is difference between onload and ready?

0 Answers  


Difference between document.ready and window.onload? : jQuery Mobile

0 Answers  


How to set attributes of an element using jquery?

0 Answers  


Mac, windows or linux? Why do you love this platform while using jquery?

0 Answers  


When can jquery be used?

0 Answers  


What is the use of clone method in jQuery?

0 Answers  


How to check or uncheck all checkboxes using jquery?

0 Answers  


Explain the difference between size and length of jquery?

0 Answers  


Which is the fastest selector in jQuery?

0 Answers  


Explain remove class jquery with example?

0 Answers  


Categories