With JQuery, I need to select ALL INPUT elements with a condition:
'NOT disabled' (:disabled) 'AND' 'NOT readonly',
and then i'm gonna change css style to query result.
UPDATE: I need iterate over result in order..
Verbosely:
$('input:not(:disabled):not([readonly])').each(function() {
$(this).foo();
});
Or better:
$('input:enabled:not([readonly])').each(function() {
$(this).foo();
});
EDIT: From your following answer, theres a better way of doing what you want to do:
$('input').focus(function(e) {
if($(this).is(':disabled, [readonly]')) {
$(this).next().focus();
e.preventDefault();
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With