Hey guys,
Wanted to make sure I am getting the correct returned elements.

Assume I have a table like:
        <table cellpadding="3" cellspacing="0" border="1" width="100%">
            <tbody>
                <tr>
                    <td>Cell 1</td>
                    <td>Cell 2</td>
                    <td>Cell 3</td>
                    <td>Cell 4</td>
                    <td></td>
                    <td>Cell 6</td>
                </tr>
            </tbody>
        </table>

And then I run a piece a code like:

$(":contains('Cell')").css("background", "#ff0");

In my mind, I should only be getting back the TDs with "Cell" in it, but
this is not the case.  the TABLE, TBODY, TR and TD are all getting a
background collor of FF0.

Am I correct in what I think I should be getting back?

Thanks.

-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com

Reply via email to