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 |
What is the difference between $('div') and $('<div/>') in jQuery?
What is the difference between $.map and $.grep in jQuery?
Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
Whether jQuery HTML work for both HTML and XML documents?
What are the advantage of using minimized version of jquery?
Explain .empty() vs .remove() vs .detach() in jquery
Can jquery be used to make an ajax request?
How to use jquery?
Define cache paremeter of jquery ajax method?
What is the difference between event.PreventDefault and "return false"?
Define each() function in jquery?
Explain jquery $.ajax() method?