Answer the question
In order to leave comments, you need to log in
How to collect the names of all active checkboxes from the table into an array for further work with them?
There is a table like
<table id="mainTable">
<tbody>
<tr>
<td>
<a href=testPath/name1.jpg"><img src="testPath/name1.jpg" alt="" width="100"></a>
<input type="checkbox" name="testText1" value="testText1">
</td>
</tr>
<tr>
<td>
<a href=testPath/name1.jpg"><img src="testPath/name2.jpg" alt="" width="100"></a>
<input type="checkbox" name="testText2" value="testText2">
</td>
</tr>
...
<tr>
<td>
<a href=testPath/name1.jpg"><img src="testPath/nameN.jpg" alt="" width="100"></a>
<input type="checkbox" name="testTextN" value="testTextN">
</td>
</tr>
</tbody>
</table>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question