Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery Select Input Fields Except Hidden

Tags:

jquery

I have a row in a table which contains a checkbox and some other form fields (text boxes, hidden fields, select lists). When the checkbox is checked I want to disable all form fields in that row except for the hidden fields. I have this working for the most part, but I can't seem to ignore the hidden fields.

What is the best way to select all form fields in a table row but ignore hidden fields in the selection?

like image 544
Bob Avatar asked Mar 07 '10 15:03

Bob


1 Answers

$(":input:not([type=hidden])") 

":input" is a jQuery pseudo selector... "Selects all input, textarea, select and button elements." http://api.jquery.com/input-selector/

like image 76
neiker Avatar answered Oct 14 '22 13:10

neiker