devxlogo

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

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  How Seasoned Architects Evaluate New Tech

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.