Retrieving checkbox status in an HTML table using JavaScript -
I am trying to remember the syntax to get an element inside the table using javascript. There is a table with a checkbox. It is a dynamic checkbox or I will only use getElementById. Here's how I am doing it. I know that I am close, but so far it has yet thought. Even I have the code:
table_name.rows [0] .cells [0] .item [0] or < / P>
tbl_run_avail.rows [1]. Seals [0]. [0]
Since you are using DOM level 0, you probably Looking for the property:
table_name.rows [0]. Seals [0]. ChildNode [0]; The above acknowledges that the check box is the first child node in your table cell. In this situation, you can avoid the unnecessary index using the property:
table_name.rows [0]. Seals [0]. First hair;
Comments
Post a Comment