Until jQuery 1.8.3 I could get empty input using this code
$('#loginCard input[value=]').addClass('error');
After jQuery 1.8.3 this syntax does not work. What has changed?
I'd like to do the same thing with jQuery 3.2.1 without using functions or each like here:
$('#loginCard input').each(function (){
if($(this).val()==""){
$(this).addClass("error");
}
});
following the concept "write less, do more"