Hey,
I'm new to all this and I just can't figure out what I'm doing wrong.
What I'm trying to do is clear the value for all the text input values
within a div but as soon as I add the input boxes to a table it stops
working. Any help would be amazing.

Thx

<div>
<a href="javascript:;" onclick="$
(this.parentNode).children(':text').not('.nogo').val('');">Clear
Style</a>
<table>
        <tr>
                <td><input type="text" value="test" /></td>
        </tr>
        <tr>
                <td><input type="text" value="test" /></td>
        </tr>
        <tr>
                <td><input type="text" value="test" class="nogo" /></td>
        </tr>
</table>
</div>
<div>
<a href="javascript:;" onclick="$
(this.parentNode).children(':text').not('.nogo').val('');">Clear
Style</a>
<table>
        <tr>
                <td><input type="text" value="test" /></td>
        </tr>
        <tr>
                <td><input type="text" value="test" /></td>
        </tr>
        <tr>
                <td><input type="text" value="test" class="nogo" /></td>
        </tr>
</table>
</div>

Reply via email to