Checkbox checked

Checkbox checked
0

#1

How to keep the label permanent when checkbox for corresponding input is checked?

Testing checkbox


#2

The actual label has to be nested. So:

<label for="SC" id="second">
Bio
      </label>

#3

The label is being generated randomly I would like to keep this function


#4

Okay, well want do you want there first?


#5

I want that when you check a label and click study that checked label would not change


#6

Would you be ok if the checkboxes were just disabled after Study is clicked? That would prevent the checkboxs from being clicked which would prevent the checkbox from changing.


#7

yup that is it! but how?


#8

You will need to create some code that assigns the value true to each checkbox input’s disabled property after the Study button is clicked.

An example of how to disable a checkbox with an id=“myCheck” is shown below.

document.getElementById("myCheck").disabled = true;

#9

it is not possible to assign the value true for each input after a checkbox is checked?
Thanks!


#10

You could, but you said you wanted the checkboxes to not change after Study was clicked. What if a user wanted to change his/her mind before clicking Study? What if they accidentally clickd one and needed to uncheck before clicking Study?