[jQuery] Selector help needed

[jQuery] Selector help needed


Hi All,
This is my DOM structure:
    <tr class="child1">
            <td class="titleCell">First Name:</td>
            <td class="fieldCell"><input class="inputbox" value="John" /></td>
    </tr>
    <tr class="child1">
            <td class="titleCell">Middle Name:</td>
            <td class="fieldCell"><input class="inputbox" value="Garry" /></td>
</tr>
    <tr class="child2">
            <td class="titleCell">First Name:</td>
            <td class="fieldCell"><input class="inputbox" value="Nick" /></td>
    </tr>
    <tr class="child2">
            <td class="titleCell">Middle Name:</td>
            <td class="fieldCell"><input class="inputbox" value="Peter" /></td>
...............
Questions:
1) how can I select the value Garry? I tried
$('tr.child1 td input').eq(1).value
But it does not work
2) How can I reset all values of input fields of tr.child2 without cycling
through?
Any help?
--
View this message in context: http://www.nabble.com/Selector-help-needed-tp17508515s27240p17508515.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.