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 |
Mac, windows or linux? Why do you love this platform while using jquery?
How to use css() in jquery?
What are features of jquery or what can be done using jquery?
What is CDN?
Whether C# code behind can be called from jQuery?
Name 3 available jquery plugins that bootstrap has in their query plugin library.
How do you disable or enable a form element?
Explain type paremeter of jquery ajax method?
How can jquery library be added to pages?
How is body onload() function is different from document.ready() function used in jquery?
What is jQuery code to select all links in first paragraph?
How to find all sibling elements in front of the current element using ?