Hi

I want to create a 'select all' checkbox or button associated with a checkbox group. This is so that the user can automatically select all checkboxes in the group as there is a long list on the form.

Im sure there is a simple way to do this but Im am a real web design beginner..

Thanks in advance for your response

Jo

What language are you using? any way you can use a table to contain all checkboxes and use loop to access each row containing checkbox to access them

A little googleing on javascript snippets for checking form boxes landed me here (1st link for this query: "javascript 'check all' boxes in form"

http://www.somacon.com/p117.php

There are any number of ways to implement this, but imnsho, javascript is going to be the most cross-browser friendly.

HTH,
-Ray

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.