Useing Javascript to set Radio Button Values

Useing Javascript to set Radio Button Values

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

  • 16 September 2019
  • SOTI Snap
  • 3 Answers
  • 0 Upvote
  • 2 Followers
  • 3.4K Views
    • 3 Answers
    • 0 Upvote
    • 2 Followers

3 Answers

Order By:   Standard | Newest | Votes
christopheBERNARD | posted this 17 September 2019

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

  • 0
  • 0
Curly | posted this 17 September 2019

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

  • 0
  • 0
christopheBERNARD | posted this 18 September 2019

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

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback