• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript code help

 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a div in my jsp and in run time the div is populated with a table
I want to iterate through the div and want to find if there is any td Tag and want to get the text value of it .

i want the following code help :

var mydiv = document.getElementById("divid");
then iterateElement(mydiv)
and alert all text value of the Tag td in it and alert with all those coma separated .
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

This post has been moved to a more appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you written so far? Please be sure to use UBB CODE tags when posting code.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Monoj Roy

Look into getElementsByTagName

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic