JavaScript and client side scripting.
Moderator: General Moderators
abcd
Forum Newbie
Posts: 2 Joined: Fri Feb 22, 2008 9:13 am
Post
by abcd » Fri Feb 22, 2008 9:18 am
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.
Last edited by
RobertGonzalez on Fri Feb 22, 2008 11:34 am, edited 1 time in total.
Reason: Obscure title renamed to something more meaningful
Zoxive
Forum Regular
Posts: 974 Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan
Post
by Zoxive » Fri Feb 22, 2008 9:20 am
This has nothing to do with php. This would require Javascript.
abcd
Forum Newbie
Posts: 2 Joined: Fri Feb 22, 2008 9:13 am
Post
by abcd » Fri Feb 22, 2008 9:24 am
can I use javascript within php?
liljester
Forum Contributor
Posts: 400 Joined: Tue May 20, 2003 4:49 pm
Post
by liljester » Fri Feb 22, 2008 9:50 am
the short answer is no.
Jonah Bron
DevNet Master
Posts: 2764 Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California
Post
by Jonah Bron » Fri Feb 22, 2008 11:22 am
One question, and that is if you only have "yes" and "no", why not just use checkboxes?
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Fri Feb 22, 2008 11:35 am
Moved to Client Side.
Renamed the thread to remove obscure title and replace with something more meaningful.