Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web Development
Expertise: Beginner
May 19, 1999

Linking Radio Buttons to Objects

Question:
I have a page with two drop-downs and two corresponding radio buttons. When I choose an item from one drop-down, I'd like the corresponding radio button to become checked. The drop-downs are actually ActiveX controls (ActiveCalendar 2.0) and have several events associated with them (onchange, onlostfocus, and so on). My entire audience is using Internet Explorer 4.0, which should make this a bit easier, and I prefer to use VBScript if at all possible.

Answer:
Controlling option buttons is easy. You can use the 'CHECKED' property to control whether they are on or off. This code shows how to do this:




	

	

	

	
	




    
    



Option 1

Option 2

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date