jquery selector not working

jquery selector not working

Hello
 
This code work Fine with jquery 1.8.2. for check if input is empty.
  1. $('#form_new_elv input:text[value=""]').each(function(){
            var id = $(this).attr("id");
            $("label[for="+id+"]").addClass("alerte");
            test=test+1;
     });



 
 
But change the Framework with jquery-1.10.2  all inputs are considered empty even if input is not empty
 
Can you help me to solve the problem?
 
Thank you