Reply
Linking drop menu with a radio button
Old 08-11-2006, 02:12 AM Linking drop menu with a radio button
Junior Talker

Posts: 1
Hey,

I want to be able to have multiple feilds, ones a default and two others with drop down menu's. and to choose which field is the choosen one I want to use radio buttons....I've done this...easy part....now the hard part....I want to be able to click one of the fields and when give that field the attention I want the radio next to the field to be selected, so that the user just interacts with the fields not the radio buttons but can if they want..

Any help would be really appreciated...

P.S. I've spent hours trying to get anything to help on google, I guess its one of those topics that is hard to find.

I want javascript to do this, I was thinking maybe some function that runs one the onClick and has the ability to change the value of a radio button, but i dont know what code to use to change the buttons value.

Last edited by dakine : 08-11-2006 at 02:13 AM.
dakine is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-12-2006, 09:07 AM Re: Linking drop menu with a radio button
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,845
Location: Blackpool. UK
document.forms[0].radios[x].checked = true; // or false
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System

Last edited by chrishirst : 08-12-2006 at 09:07 AM. Reason: typing error
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Linking drop menu with a radio button
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10693 seconds with 12 queries