Executing a function with two ranges of radio buttons | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Executing a function with two ranges of radio buttons

I wanto to select two radio buttons from two different lists and then send the informations of the two selected buttons so that in base of them a function is executed. How should I do?

18th Nov 2018, 8:50 PM
Alessandro Palazzolo
Alessandro Palazzolo - avatar
3 Answers
+ 4
Alessandro unfortunately I'm having difficulties trying to understand what you mean, partly because I know next to nothing of how football scoring is calculated, I barely even know football (assuming American football). If you have the code with you I'd like to see it, hopefully I can understand what you mean that way.
20th Nov 2018, 12:17 PM
Ipang
+ 2
What ranges are you talking about here mate? number ranges, weight, distance? too little information here, need more to understand what you want to do, maybe give an example, value of radio button 1, and radio button 2, and how they affect the function in its work.
19th Nov 2018, 5:22 AM
Ipang
+ 1
Ipang I got many functions (connected to football teams) that return the last results of these teams. Then I made a variable "sum" containing the results of two of these teams. I want to define the value of the "sum" variable as I would do with a prompt but with radio buttons. So I have two ranges of buttons (one button per team), then I want to choose two of these buttons so that the "sum" variable would be filled with the team's results corresponding to the buttons choosen. If you have any advice bout that I would be grateful!
20th Nov 2018, 11:56 AM
Alessandro Palazzolo
Alessandro Palazzolo - avatar