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 you write a jquery code to select all links inside the paragraph?
How do you select element by ID in jQuery?
What is the difference between $.map and $.grep in jQuery?
Explain "beforesend(xhr)" paremeter of jquery ajax method?
Explain the each() function?
How can we debug jQuery?
Can you call C# code-behind method using jQuery? If yes,then how?
Why is the block display style used for animations?
What is .detach()? : jquery mobile
Why is only the first page of multi page document loaded? : jquery mobile
Differentiate between jquery.size and jquery.length? : jQuery Mobile
Explain the types of selectors in jquery?