http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_disable.2Fenable_an_element.3F
--John On 8/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 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 > >