I'm trying to cycle through all file inputs with the class of .ruFileInput each time there is a change to one of the inputs.
If they are all filled I would like to do something - in this example alert("No Empty Fields!!");
The issue is that the message pops every time a file input changes instead of alerting once they are all filled. Any suggestions?
$('input.ruFileInput').live('change' , function () {
$("input.ruFileInput").each(function() {
if($(this).val() != ""){
alert("No Empty Fields!!");
}
});
});