how do I disable all other radio buttons while one is selected in php

Recommended Answers

If you put the radio buttons into a group, only one is allowed to be selected at any given time.

<input type="radio" name="group1" value="button1">
<input type="radio" name="group1" value="button2">
<input type="radio" name="group1" value="button3">
<input type="radio" name="group2" value="button4">
<input type="radio" name="group2" value="button5">
<input type="radio" name="group2" value="button6">
Jump to Post

All 2 Replies

If you put the radio buttons into a group, only one is allowed to be selected at any given time.

<input type="radio" name="group1" value="button1">
<input type="radio" name="group1" value="button2">
<input type="radio" name="group1" value="button3">
<input type="radio" name="group2" value="button4">
<input type="radio" name="group2" value="button5">
<input type="radio" name="group2" value="button6">

Hi,
As per "pixesoul" you can radio buttons as group
Or
You can use jQuery to disable all other radio buttons.

If you need more help, Please let me know.

Thanks,
Ajay

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.