I need a jQuery filter/map/each type function to check if ALL elements satisfy a condition:
function areAllValid(inputs){ return $.someFunction(inputs,
The answer is YES, it has a method grep that can meet your requirement. For example:
inputs= jQuery.grep(inputs, function(input){ return input.length>0; }); if(inputs.length>0) return true; return false;
I don't test it, maybe it has tiny issue but should be almost like this.