Enable and disabled multiple inputs
Create array with id's of needled input's:

var inputs = ["clase_via", ...], i, count;
for (i = 0, count = inputs.length; i &lt; count; i += 1){
    $(inputs[i]).prop("disabled", true);
}


Add "data" attribute for needled input's:

&lt;input type='text' data-lockable="true"/&gt;
$("input [data-lockable='true']).prop("disabled", true);


Place all input's into one block and call jQuery as:

$("#maindiv &gt; input").prop("disabled", true);