Thanks John I got it.

Andrea

On Aug 31, 12:10 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_disable.2F...
>
> --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

Reply via email to