Skip to main content
Participant
May 8, 2017
Question

JavaScript to complete check boxes

  • May 8, 2017
  • 2 replies
  • 544 views

Hello,

I'm new to JavaScript and I'm trying to develop a script to check multiple check boxes when the first one is checked. When check box 3 is checked, I need check boxes, 9, 12, 15, and 18 to be checked automatically.

Any help would be greatly appreciated! Thank you.

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
May 8, 2017

Hi.

You don't need JavaScript.

Just give to the boxes, 9, 12, 15, and 18 exactly the same name and the same export value than the checkbox 3.

Acrobate du PDF, InDesigner et Photoshopographe
Joel Geraci
Community Expert
Community Expert
May 8, 2017

... but then if the user checks box 9 (for example), then 3, 12, 15, and 18 also get checked.

JR Boulay
Community Expert
Community Expert
May 8, 2017

Yes, I hope that this is that Jess wants…

Acrobate du PDF, InDesigner et Photoshopographe
Joel Geraci
Community Expert
Community Expert
May 8, 2017

What happens to check box 3 when a user checks 9, 12, 15, and 18? What if they check box 3 and then uncheck 9 manually after the script checks it automatically?