Useing Javascript to set Radio Button Values

C

Is there a way to set which value is selected with a java script?

6 years ago
SOTI Snap
ANSWERS
C
Christophe
6 years ago

Hello,

i'm not an expert but could you describe a little more what you are trying to do ?

because, kiosk is a html page with this you can add some input type checkbox and add for to enabled when user click on

try and tell us

C
Curly
6 years ago

Hi Christopher,

Thanks for your interest in helping!

I'm using SOTI Snap to build an application and i want to be able to set or read the values of a radio button.

Something similar to this, but for radio buttons.

document.getElementById("txtTruck").value = document.getElementById("plcTruck").value;

Best 

Terry

C
Christophe
6 years ago

Hello terry,

I don't know soti snap ..but we used some javascript in our lock down

for me, if you can place a button and add on this button an javascript alert(' ...'); 

it's mean that javascript is ok as this no reason for to get value from a checkbox

// this code normally SHOULD BE work

if(document.getElementById(' ID CHECKBOX').checked)

alert(' CHECKED ');

Hope this help