I'm looking for something along the lines of...
$(':input:not(readonly)') // all inputs which are not readonly
but struggling to find the syntax.
Any pointers? thanks
I'm looking for something along the lines of...
$(':input:not(readonly)') // all inputs which are not readonly
but struggling to find the syntax.
Any pointers? thanks
You can use jQuery disabled
$('#target').attr("disabled", true);
so
var testMonkey = $('#element');
if (testMonkey.attr('disabled') == true) {
//this is NOT read only
} else {
//this IS read only
}
NOTE: You can also do the same with $('#tbox').removeAttr('readonly');
I suppose you are looking for something like the following:
$('input:not([readonly="readonly"])')
Have a look at jQuery's various attribute-selectors.