I encountered a particular challenge: I have designed a table for user interaction, with results displayed at the end of each row. Just out of curiosity, I would like to count how many results are present in the table without performing any calculations. Is there a way to achieve this using Javascript? Thank you.
Below is the code for my table:
<table id="example" class="striped">
<thead>
<tr>
<th>Objectives</th>
<th> <center>Start Date </center></th>
<th> <center>End Date </center></th>
<th>Initial Evaluation</th>
<th> <center>Goal </center></th>
<th>Interim Evaluation</th>
<th>Final Evaluation</th>
<th>Result (%)</th>
</tr>
</thead>
<tbody>
<tr>
<th>Objective 1</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
<tr>
<th>Objective 2</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</tbody>
</table>
The two rows in the table above contain fields that calculate values based on user input. However, as not all users may complete both entries, I am interested in determining the total number of calculated results derived from the available data.