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 |
Can we have multiple document.ready() function on the same page?
What is the difference between size and length of jQuery?
Which is the latest version of jQuery library?
Difference between document.ready and window.onload? : jQuery Mobile
What is the difference between bind() and live() function in jquery?
What is the difference between find and children methods in jquery?
What are the difference between alert() and confirm()?
List browser related issues for jquery?
Define url paremeter of jquery ajax method?
Explain the difference between javascript and jquery? : jquery mobile
What features of jquery, has been used in web applications?
Can there be more than one ready function in jquery?