If you want all input elements to be writable (not only readable), you can use the following selector:
$("input:not([readonly])")
The parameter after : does not match the selector. [readonly] will match everyone where read-only is installed. Note that the following will not always work:
[readonly="readonly"]
How could you use both of these options:
<input readonly type="text"> <input readonly="readonly" type="text">
You can also use ": input" psuedo-selector instead of "input, textarea". See the documentation here .
source share