Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically created table's checkbox's value  RSS feed

 
Kousik Majumder
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!