views:

2461

answers:

3

I have the following HTML generated by an ASP.NET repeater:

        <table>
            <tr>
                <td><input type="hidden" name="ItemId" id="ItemId" value="3" /></td>
                <td>Terry</td>
                <td>Deleted</td>
                <td>Low</td>
                <td>Jun 21</td> 
            </tr>
        ....
           rows repeat
        ....
        </table>

How do I select a particular hidden field by value, so that I can then manipulate the columns next to it?

Thanks for any advice..

+13  A: 

$('input[value="Whatever"]')

Michael Bray
Thanks, almost too simple.
Chuck Conway
Just wanted to mention, but there can be cross-browser compatibility issues when using quotes around the value you are querying. $('input[value=Whatever]') seems to be the accepted way to do these sort of queries.
Wally Lawless
A: 

This is just what I was looking for.

This site is great! I don't use to sign up to websites, but this site is a MUST!

Thanks to everybody for your kind help.

Regards.

A: 
$('input:hidden[value='3']);
FrenchiInLa