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
Explain the difference between size and length of jquery?
What is the use of jQuery.data() method?
What is eq()? : jquery mobile
What is the latest version of jquery?
Explain jquery filter?
What are the differences between size and length in jquery?
How can jquery library be added to pages? Write a basic jquery code?
Whether C# code behind can be called from jQuery?
Explain remove class jquery with example?
Explain width() vs css(‘width’)?
How can we apply css in odd childs of parent node using jquery library?
What is difference between $(this) and ‘this’ in jquery?
How can related code be encapsulated? Give example.
Why we need jquery?
Define jquery connect?