Something like this should work for you. I have not tested it but I feel confident it should point you in the correct direction.
You would need to set the classes up. I hope I named them in a way you understand what goes with what.
You would call the function on load if the dropdown(select) field has it's data when loaded. You may also need to call it when you add a new row on the table.
The comparison for the if may not need the quotes around the 1
$(document).ready(function(){
function setTableFieldReadOnly(){
/* loop through the table */
$('.theTableClass tbody tr').each( function() {
/* set default values */
var currSelectClasseValue = $(this).find('.theSelectClass select').val();
var currOtherFieldClass = $(this).find('.theOtherFieldClass input');
if (currSelectClasseValue=='1'){
currOtherFieldClass.attr('readonly', true);
}
else{
currOtherFieldClass.removeAttr('readonly');
};
}); /* END: table loop */
}; /*END: function setTableFieldReadOnly() */
/* when the select value changes */
$('.theSelectClass select').change(function(){
setTableFieldReadOnly();
});
}); //close document.ready