I am trying to target all input fields which have a maxlength
attribute specified. However, the latest jQuery seems to not be
filtering properly and ends up ignoring the filter.
So if one has:
<input type="text" />
<input type="text" maxlength="10" />
And executes:
$("[EMAIL PROTECTED]").addClass("test");
I keep getting:
<input type="text" class="test" />
<input type="text" maxlength="10" class="test"/>
Instead of:
<input type="text" />
<input type="text" maxlength="10" class="test"/>
Am I doing something wrong? I think jQuery 1.2.1 has done away with
XPath-like expressions, but I thought this should still work.
thx.
Sean