Getting the sum of all radio button values to display in a table

后端 未结 3 2047
Happy的楠姐
Happy的楠姐 2021-01-29 13:14

I have some radio buttons in a table and I’ve set a value to them. When the user selects them and clicks the submit button, I want the sum of those values to show in another tab

3条回答
  •  Happy的楠姐
    2021-01-29 13:49

    To get the value of an element, you can set an id to the element, then reference the element by id. ex.

    
    

    It is up to you to figure out how to chain all the inputs together

提交回复
热议问题