| Author |
Trying to add a DOM object using jquery but its not displaying on the browser
|
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 984
|
|
Hi,
I am using the below code
|
http://www.lifesbizzare.blogspot.com || OCJP:81%
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3860
|
|
|
So, you're creating a new paragraph and...then what? You don't do anything with it. It's just like creating any other object - it doesn't have any connections to anything else until you add them. I'd suggest looking in the jQuery docs for functions that add to the DOM.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
Think about it for a minute. If it were to be automatically inserted into the DOM just by creating it, how would jQuery know where in the DOM to put it? You've got to tell it.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 984
|
|
Thank you Bear And Mathew , I got what you meant to convey.
|
 |
 |
|
|
subject: Trying to add a DOM object using jquery but its not displaying on the browser
|
|
|