jQuery - Cycling through child elements
Posted
by Dan
on Stack Overflow
See other posts from Stack Overflow
or by Dan
Published on 2010-05-19T11:08:56Z
Indexed on
2010/05/19
11:20 UTC
Read the original article
Hit count: 174
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.
© Stack Overflow or respective owner