tags:

views:

34

answers:

1

Hi can someone tell me what i'm doing wrong in this jquery statement. I have a 'row' object which contains any number of tablecells, and i'm looking only for the cells that contain a textbox or text area.

This statement works fine:

var $textCells = jQuery('td:has(textarea)', row);

but i need to include 'text', inputs, and this is where is blows up:

var $textCells = jQuery('td:has(textarea,input[@type=text])', row);

I get an 'Unrecognized expression error'. Can someone set me straight? Thanks

+1  A: 

What version of jquery are you using? @ for the attribute selector was removed a while ago, as of version 1.3.

ScottE
ahhh, that was it. stupid me. thanks!
29er