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
Explain some features of jquery knockout?
What are selectors in jquery? Explain
Difference between event.PreventDefault and event.stopPropagation?
Explain each() function in jquery?
What is the need for jquery? : jQuery Mobile
Is jQuery is a JavaScript or JSON library file?
Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
Is it too early to discuss jquery ui 1.8?
How do you update ajax response with id " resilts"?
What is the use of jQuery load method?
How to use jquery?
Write a code for the implementation of a module pattern.
Have any of your startup projects failed dismally - if so, why and how did you learn from them?
Explain .empty() vs .remove() vs .detach() in jquery
Tell me how to use migrate jquery plugin if possible? : jquery mobile