I am trying to use jQuery to detect if a table row has one or two inputs...
<tr class="myoptions">
<td class="label">
<label>
<strong>Options</strong>
</label>
</td>
<td class="value">
<div>
<input type="radio" value="test1">
<label>
test1
</label>
</div>
<div>
<input type="radio" value="test1">
<label>
test1
</label>
</div>
</td>
</tr>
How can I count the inputs inside this tr? Does anybody have an example I can see?
$(".value input").length?