jeudi 2 juin 2016

displaying the value of a checkbox in a div with javascript

In my application I will eventually want to dynamically assign values to certain checkbox values but where I am at currently is this.

When the page first loads, a set of checkboxes load and when any of these are checked, a corresponding div is revealed nearby. In THAT div there is an additional checkbox that drops down a section of text that should match what the value of the original checkbox value is.

I have the click a box, reveal a box, click a box, reveal the text part working correctly but what it displays is hardcoded and I'm trying to figure out how to pass the values of the checkboxes around to tie everything together dynamically. Thank you for your assistance on this.




Aucun commentaire:

Enregistrer un commentaire