ammarazahid / feedback-form

2 stars 0 forks source link

Radio Button #2

Open KhairUnNisa10 opened 5 years ago

KhairUnNisa10 commented 5 years ago

https://github.com/ammarazahid/feedback-form/blob/089c2688e741e0e10781e1e5b7fad39bb608b71a/index.html#L38-L47

Radio button is defined to give many options, but the user can select only one option. For example if the user select option number 2 and again select option number 5, so the option number 2 will be unselected automatically because the user can only select "one" option. For that to happen we give each radio button a name, and the name has to be same for all the radio button options. After input type insert a name and insert the name to all the radio buttons and same name.

input type="radio" name="rate" value="number" input type="radio" name="rate" value="number" input type="radio" name="rate" value="number"

ammarazahid commented 5 years ago

done