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 are the basic selectors in jQuery?
What are the four parameters used for jQuery Ajax method?
Explain the difference between .js and .min.js?
Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
How to get the direct parent of an element using ?
Explain the use of each function in jquery?
How to write cookies in jquery?
How to use migrate jquery plugin if possible? : jquery mobile
What is the difference between prop() and attr() in jquery?
Whether jQuery HTML work for both HTML and XML documents?
Why jQuery is needed?
What are the selectors in jquery? How many types of selectors in jquery?