Page 1 of 1

Selecting radio button when other button selected

Posted: Fri Feb 22, 2008 9:18 am
by abcd
I have a php page having 2 groups of radio buttons(suppose group1,group2). In both groups there are 2 radio buttons ie, yes & no . 'no' button is checked by default in both groups.I want when a user checks yes button of any group (suppose group1), corresponding yes button of other group (group2)get checked automatically & vice versa.(It will happen also for 'no' buttons if user change his/her mind from yes to no.)

Thanks in advance.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.

Re: plz solve the problem

Posted: Fri Feb 22, 2008 9:20 am
by Zoxive
This has nothing to do with php. This would require Javascript.

Re: plz solve the problem

Posted: Fri Feb 22, 2008 9:24 am
by abcd
can I use javascript within php?

Re: plz solve the problem

Posted: Fri Feb 22, 2008 9:50 am
by liljester
the short answer is no.

Re: plz solve the problem

Posted: Fri Feb 22, 2008 11:22 am
by Jonah Bron
One question, and that is if you only have "yes" and "no", why not just use checkboxes?

Re: Selecting radio button when other button selected

Posted: Fri Feb 22, 2008 11:35 am
by RobertGonzalez
Moved to Client Side.

Renamed the thread to remove obscure title and replace with something more meaningful.