File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Dynamically created table's checkbox's value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dynamically created table Watch "Dynamically created table New topic

Dynamically created table's checkbox's value

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 237
Hi All,

I have a dynamically created table which will contain 2 cells.
In cell 1 :- A Dynamically created checkbox
In cell 2 :- A Dynamically created text node

I can not retrieve the checkbox's status(checked).
How can I fetch that?

I have to check from the above code whether the checkbox is checked or not.

Please tell me the way..


Thanks in Advance,
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
lhsTbl.rows[i].cells[0].checked is a reference to the cell. How would it know what the checkbox status is? You need to look at the input in that cell.

I agree. Here's the link:
subject: Dynamically created table's checkbox's value
It's not a secret anymore!