• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Select all tick boxes

Guest
Oct 23, 2006 Oct 23, 2006

Copy link to clipboard

Copied

I have a cfoutput query which shows the folowoing

Group 1
"Check box" "John Smith"
"Check box" "Paul John"
"Check box" "Jeff Small"

Group 2
"Check box" "Craig Land"
"Check box" "Pete Son"
"Check box" "Pete smoth"

so what i want next to each "Group" have a select all Check box in group link or Check box

so if clicked only the check boxes in that group are checked
TOPICS
Advanced techniques

Views

467

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 24, 2006 Oct 24, 2006

Copy link to clipboard

Copied

That would be a job for javascript.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 24, 2006 Oct 24, 2006

Copy link to clipboard

Copied

ok thanks for the great reply

any idea how i would do this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 25, 2006 Oct 25, 2006

Copy link to clipboard

Copied

quote:

Originally posted by: JohnGree
ok thanks for the great reply
any idea how i would do this?

I recommend this book
http://www.samspublishing.com/library/library.asp?b=STY_JavaScript_24_hours&rl=1

It's how I learned javascript. It's available at amazon and many bookstores.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 24, 2006 Oct 24, 2006

Copy link to clipboard

Copied

> ok thanks for the great reply
> any idea how i would do this?

I think Dan might have been suggesting that - given it's a JS question -
asking on a CF forum might not be the best idea. Speaking for myself, I'm
a pretty good CF developer, but only an adequate JS developer. And that's
probably representative of the audience here.

I don't think Dan was trying to be unhelpful, just matter-of-fact.

If you have JS questions, ask on a JS forum. "Best tools for the job",
etc.

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 30, 2006 Oct 30, 2006

Copy link to clipboard

Copied

LATEST
But as a starter :-

<script language="javascript">
function CheckAll(){
inputs=document.getElementsByTagName("input")
for (i=0;i<inputs.length;i++){
if (inputs .type=="checkbox"){
inputs
.checked=true;
}
}
}
</script>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation