JQuery "not readonly" selector

I'm looking for something like ...

$(':input:not(readonly)') // all inputs which are not readonly 

but struggles to find the syntax.

Any pointers? thank

+44
jquery jquery-selectors
Sep 14 '10 at 12:17
source share
4 answers

This should work:

 $(":input:not([readonly])") 
+86
Sep 14 '10 at 12:20
source share
 $('input:not([readonly])') 

will be displayed read-only, readonly = "true" and readonly = "readonly"

+32
Mar 02 2018-11-11T00:
source share

I assume you are looking for something like the following:

 $('input:not([readonly="readonly"])') 

Take a look at jQuery's various selector attributes .

+1
Sep 14 '10 at 12:25
source share

I recently did something like this:

 $('#element').find(':input').not(':input[readonly]'); 
0
Oct 27 '15 at 13:07 on
source share



All Articles