I have a cold fusion script that generates items and a checkbox..
Would generate roughly..
[ ] = checkbox, [x] = checked checkbox
What I want to do is have a uncheck link next to each class...
The trouble is all the checkboxes have the same name..
So I was hoping someone could help me out.. I can create a hidden field with a list of all the values of for that subgroup... like <input type="hidden" name="listDog" value="Sheperd,Lab,Poodle,Terrier,Greyhound"> so like a javascript could be ran by
UncheckGroup(document.getElementById('listDog'))
The values are actually going to be numbers.. the IDs of the item but using names for simplicities sake...
Any ideas at all? Anyone?
ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
Code:
<cfoutput query="getx" group="AnimalClass">
#AnimalClass# (Cat, Dog, Fish)<br>
<cfoutput group="AnimalType">
<input type="checkbox" name="atype"<cfif guessTypes contains AnimalType>checked</cfif>>#AnimalType# (Sheperd, Lab, Poodle)<br>
</cfoutput><br>
</cfoutput>
Would generate roughly..
[ ] = checkbox, [x] = checked checkbox
Code:
Cat
[ ] Calico
[x] Persian
Dog
[x] Sheperd
[x] Lab
[ ] Poodle
[ ] Terrier
[x] Grey hound
Fish
[x] Goldfish
What I want to do is have a uncheck link next to each class...
Code:
Cat Uncheck all
[ ] Calico
[x] Persian
Dog Uncheck all
[x] Sheperd
[x] Lab
[ ] Poodle
[ ] Terrier
[x] Grey hound
Fish Uncheck all
[x] Goldfish
The trouble is all the checkboxes have the same name..
So I was hoping someone could help me out.. I can create a hidden field with a list of all the values of for that subgroup... like <input type="hidden" name="listDog" value="Sheperd,Lab,Poodle,Terrier,Greyhound"> so like a javascript could be ran by
UncheckGroup(document.getElementById('listDog'))
The values are actually going to be numbers.. the IDs of the item but using names for simplicities sake...
Any ideas at all? Anyone?
ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.