Hi Bruno, you need to define value attributes for your inputs
<fieldset> <p><input type="radio" name="foo" value="yes"/>yes</p> <p><input type="radio" name="foo" value="no"/>no</p> <filedset> <p><input type="checkbox" name="value" value="val1"/> Value 1 </p> <p><input type="checkbox" name="value" value="val2"/> Value 2 </p> </fieldset> <input type="submit" /> </form> </fieldset> than you can do the following $("input[name='foo']").click(function() { if ( $("input[name='foo']:checked").val() == "no" ) { $("input[name='value']").attr("checked",""); } }); by(e) Stephan 2009/2/22 Bruno <brunomend...@gmail.com>: > > Hi, > > I'm newbie about javascript and jquery. I would like to know how can > I change values of all input type checkbox to unchecked when the user > changes the values to "No" answer of a input type radio. > > The code can be the following > > <form> > <fieldset> > <p><input type="radio" name="foo" />yes</p> > <p><input type="radio" name="foo" />no</p> > <filedset> > <p><input type="ckeckbox" name="value" /> Value 1 </p> > <p><input type="ckeckbox" name="value" /> Value 2 </p> > </fieldset> > <input type="submit" /> > </fieldset> > </form> > > Thank you. > > Regards, > Bruno. >