Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dynamically created table Watch "Dynamically created table New topic
Author

Dynamically created table's checkbox's value

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
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,
Kousik


Thanks in Advance,
Kousik
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.



Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Dynamically created table's checkbox's value
 
Similar Threads
Inexplicable behaviour
Read the respective row when a check box checked
using an object in a different class' method
Fetch the correspondin row using the checkbox checked value
Game Tutorials -->> TicTacToe