Q:

I've problems to clear inputs text width jQuery

Well.... i've the next problem and i don't know for why....
I need clear some inputs, the value and text but the text in the input not clear.
My code:
$("#bloque-addDireccion").each(function(){
      var input = $(this).find("input[name$='Mia']");
      $(input).each(function(){
          $(this).text("");
          $(this).attr("value","");
      });              
});

I'm inspect the inputs and the value it's correct ("") but i've the older text always in the input.
What i'm do wrong?

A:

The .text(text) method cannot be used on form inputs. To set the text value of input or textarea elements, use the .val(value) method.
please also check the Difference between val() and text()
try .val(value)
 $(this).val("");

