How do I check all input boxes to see if there are values when the document loads?
$(document).ready(function(){
var inputVal=$("input").val().trim();
if(inputVal!=''){
}
})
I would like to do an action for any input boxes that have values.
This is one way:
On closer reading it seems the OP wanted to do something with the non-empty fields, so: