adspace
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
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
How to validate email using jquery?
How can jquery library be added to pages?
How do you install/use jquery in a project. What is the minimum setup needed to start using jquery.
How to always reference latest version of jquery?
What is the minimum setup needed to start using jquery.