I need to get fieldValues of radio buttons i have successful got it from textareas and from dropdown
To get it for textareas and dropdown i used this way:
$('#GEN_1').val(item.get_fieldValues().GEN_1_Sum_Scope_Assigment);
and i tried to get it from radio button this way:
$('input[name="GEN20"]:checked').val(item.get_fieldValues().GEN_20_EL);
$('#GEN_20 input[name="GEN20"]').val(item.get_fieldValues().GEN_20_EL);
$('#GEN_20 input[name="GEN20"]:checked').val(item.get_fieldValues().GEN_20_EL);
HTML for radio button
<input id="GEN_20_1" type="radio" name="GEN20" value="1">Ja
<br />
<input id="GEN_20_2" type="radio" name="GEN20" value="0">Nej
How can i do it?
My other question to know more what I'm doing:
Load list item to dispaly get_fieldValues?
Update
I want it to set the "black dot" in the one that is checked when i get the value
