What is the difference between $('div') and $('<div/>') in jQuery?
Answer Posted / 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 |
Post New Answer View All Answers
Difference between document.ready and window.onload? : jQuery Mobile
What is queue() in jquery?
What is cdn and how jquery is related to it?
How can we add change font size using jquery?
What is $() in jquery library?
What is jquery.noconflict? Explain
How can related code be encapsulated?
What is the difference between the knockout and jquery?
What is called chaining?
What are the advantage of using minimized version of jquery?
Is jquery is json library file or a javascript?
What are the advantages of using cdn?
How to search for descendant elements that match the specified selectors using ?
Is jQuery is a client or server scripting?
Explain .on()? : jquery mobile