Thanks,
That did it.
Now I have another issue:

these checkboxes must be names like an array:

product_interest[]

but in the rules I can't have this:

                                product_interest[]: "required",

I know I can insert code in HTML:
class="required"

but I would rather have it in the rules.

Is there any way to do that?

L.


On Dec 3, 2008, at 11:30 AM, Jörn Zaefferer wrote:

I guess you have to escape that ID: jQuery interprets that as "element
with id product_interest and an attribute named '0'".

Jörn

On Wed, Dec 3, 2008 at 5:24 PM, luke adamis <[EMAIL PROTECTED]> wrote:

Is there a reason for this to not work?

                       other_product_interest: {
                                       required:
"#product_interest[0]:checked"
                                       },

product_interest[] is a list of checkboxes, if user picks 'other' ,
#product_interest[0] then user must fill the text filed:
other_product_interest.

Thanks,
Luke




Reply via email to