I'm trying to make the user check at least one checkbox i try with javascript but the problem is that i'm naming the check box like this: product[] so then i loop through that array to insert the products checked the problem is that with all the javascript function out there they all use the checkbox name as an array so i can loop through them via javascript any idea how it can be done?
Thanks.
try this:
my_form.elements["product[]"]
or if you just create one variable:
var my_product = my_form.elements["product[]"]
you can use my_product like is normal javascript field
cu Igor Mladenovic
Thanks 15 seconds ago i figure it out!!!!!