I have only a read form that I want to fill with the values โโreturned from the ajax request. What I don't understand is the correct syntax to get the identifier of a specific switch. I know what value exists in db, but how to get switch id to change switch attribute?
For example, in the parameters of the "Radio" button with the "name" == Criteria1Score ", how can I return the input identifier, where value == Good.
Here is an example of a form structure:
<legend>Criteria1</legend> <label class="radio inline"> Great <input id="Criteria1Score1" class="Score" name="Criteria1Score" type="radio" value="Great"> </label> <label class="radio inline"> Good <input id="Criteria1Score2" class="Score" name="Criteria1Score" type="radio" value="Good"> </label> <label class="radio inline"> Bad <input id="Criteria1Score3" class="Score" name="Criteria1Score" type="radio" value="Bad"> </label>
source share