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 |
Differentiate between calling stop (true, true) and finish method?
What is the difference between $(this) and 'this' in jquery?
Explain how jquery works?
How do you add an HTML element in DOM tree?
How can related code be encapsulated?
How to get the direct parent of an element using ?
What is $() in jquery?
What are the advantages of jQuery?
What are the guidelines for an application to follow the principles of progressive enhancement.
What is the use of jquery.data()?
Explain some benefits of jquery knockout?
Need to add jQuery file in both Master and Content page?