I am selecting a list of table rows within my document.
The following code selects:
- All table rows...
- That contain a DIV with class
.val-string
- With a child
input
that holds the value "null".
$('tr').children('.val-string').children('input'):not([value!=null])').each(function(k,v) { });
This works for selecting those inputs that contain the value "null", but I also want it to work with "Null", "NULL" or even "nUlL".
I have tried using:
... children('input'):not([value.toLowerCase()!=null])') ...
amongst other variations/placements of the toLowerCase()
function.
Basically, can what I ask for be performed in one line of code like the one I'm trying to execute above?
This link seems to suggest using a modified :contains
function, but I don't want to change this function for all my code as it is used elsewhere and requires case sensitivity.