Home >Web Front-end >HTML Tutorial >There is a one-to-one correspondence between radio buttons and the number of data items. How to assign a value to the button? _html/css_WEB-ITnose
Since the number of data retrieved from the database is variable, the number of radio buttons is also variable. How to determine the value of the radio button?
Assign values together when generating radio buttons
I hope the value will be increasing, but the number of buttons It is determined based on the number of data items. It is dynamically generated.
can obtain data, and the number can also be obtained.
How to assign dynamic values to radio buttons in HTML?