Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select all checkboxes on a dynamically created form?

Status
Not open for further replies.

dws21

IS-IT--Management
May 31, 2001
6
GB
I am after a way to add a button to a dynamically generated form which has a variable number of checkboxes on it to automatically tick ALL those boxes as selected regardless of their current status.

The checkboxes are generated automatically and I have no control over their naming, this appears to be random, some examples below (these run sequentially on the form):

<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;002543&quot;>
<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;002846&quot;>
<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;002816&quot;>
<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;002818&quot;>
<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;002537&quot;>

Any solutions?

TIA

David
 
check out this thread, I think it is what you are looking for.

thread216-57856 The only dumb questions are the ones that are never asked
 
Many thanks for that link, it does exactly what I was after. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top