Exactly, thanks James. For some reason I found tutorial code that had $
("inp...@name=product_id]").click(); instead of $("input
[name=product_id]").click(); and so this broke it... I was close.
THANK YOU

On Sep 30, 1:28 pm, James <james.gp....@gmail.com> wrote:
> With your HTML, you can do it two simple ways:
>
> By classname (don't forget the .):
> $(".checkbox").click();
>
> Or name of the fields:
> $("input[name=product_id]").click();
>
> If you use:
> $("product_id")
>
> It's looking for an HTML element <product_id>, which, you don't have
> such on your page.
>
> On Sep 30, 9:21 am, ripcurlksm <kevin.mccorm...@cox.net> wrote:
>
> > I have three radio buttons, and when a certain radio is selected I
> > want to show a series of checkboxes. If the other two radio buttons
> > are selected, I want to hide the checkboxes. I *think* the problem is
> > that I am using the wrong syntax to call the click() function on the
> > radio "name" attribute.
>
> > Example/Code here:http://psylicyde.com/misc/jquery-validate/demo/index3.html
>
> > $("product_id").click(function () {
> >         if ($("#multimarket").is(':checked')) {
> >                 // showcheckboxes
> >         } else {
> >                 // hide checkboxes
> >         }
>
> > });
>
> > <input type="radio" class="checkbox" id="market"               
> > name="product_id"
> > value="1"/>Single Market
> > <input type="radio" class="checkbox" id="multimarket"
> > name="product_id" value="2"/>Multiple Markets
> > <input type="radio" class="checkbox" id="full"                         
> > name="product_id"
> > value="3"/>All Markets

Reply via email to