tags:

views:

27

answers:

2

I'm using JQuery to try to select the textboxs on a form that are not disabled. My efforts have been fruitless since I don't know how to select all the input[type="text"] but also are not set to disabled.

result so far:

$('#signature INPUT[type="text"]');

+4  A: 

Try this:

$('#signature input:text[disabled!=disabled]');

In english, find all input elements inside #signature which are of type text and which do not have their disabled attribute set to disabled.

Tatu Ulmanen
+4  A: 

Try this:

$('#signature INPUT[type="text"]:not(:disabled)');
Gumbo
Two posts with identical wording, five seconds within each other, but both with (slightly) different approaches. Beautiful!
Pekka
@Pekka: But mine works. ;-)
Gumbo
Worked right out of the gate. Thanks Gumbo!
minty