I need the check of a checkbox disable other inputs and change value to others. Here the code:
//click on keep prop cancel unnecesary fields
$(document).ready(function(){
$('#keepProp').click(function(){
state = $('.percent').val();
if (this.checked){
$('.depend').attr({disabled:'true'});
$('.percent').val('%');
} else {
$('.depend').attr({disabled:'false'});
$('.percent').val(state);
};
});
});
Works fine if I check but the uncheck operation do not do nothing???
Help
Andrea

