File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to add a DOM object using jquery but its not displaying on the browser

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I am using the below code

 
Matthew Brown
Bartender
Posts: 4549
8
Java Netbeans IDE Scala
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64175
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bear And Mathew , I got what you meant to convey.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic