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
What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
What is the use of delegate() method in jquery?
explain width() vs css(‘width’) in jquery
How do I check if the DOM is ready?
Explain the script build up by jquery?
How to disable jquery animation? : jquery mobile
How to add and remove css classes to an element using jquery?
What is jQuery code to select all links in first paragraph?
How do you select all elements with the class of “selected” in jquery?
Explain the use jquery.data method?
Can JQuery Run on MAC or Linux instead of Windows?
How you will use jquery means requirement needed for using jquery.
How do I check if an HTML element is empty using jQuery?
What is the use of val() method in jquery?
How did you become the creator of jquery ui? Whats the story behind that?