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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?

870


What is the use of delegate() method in jquery?

842


explain width() vs css(‘width’) in jquery

858


How do I check if the DOM is ready?

891


Explain the script build up by jquery?

9370


How to disable jquery animation? : jquery mobile

891


How to add and remove css classes to an element using jquery?

847


What is jQuery code to select all links in first paragraph?

888


How do you select all elements with the class of “selected” in jquery?

819


Explain the use jquery.data method?

912


Can JQuery Run on MAC or Linux instead of Windows?

888


How you will use jquery means requirement needed for using jquery.

815


How do I check if an HTML element is empty using jQuery?

910


What is the use of val() method in jquery?

908


How did you become the creator of jquery ui? Whats the story behind that?

1303