jQuery - Cycling through child elements
- by Dan
Hi,
I have a series of select boxes within a table like so:
<tr>
<td><select></select></td>
<td><select></select></td>
<td><select></select></td>
<td><select></select></td>
</tr>
With about 10 rows.
I'm trying to reset all of the select boxes in the row to a default value, but having trouble with the syntax, can anyone help? This is what I have at the moment, but it dosen't seem to be working:
$(row).children('td > select').each().val('0');
Any advice appreciated.
Thanks.