Hi,

I am using 3 radiobuttons which are disabled by default.I want to enable them when i check an other radiobutton on my form.what is the solution for this.

plzz reply.

thanks.

Use the onclick attribute with a function along the lines of

Function EnableRadioButtons ( array Elements )
    For each Element in Elements
        Set Element Enabled

Use the onclick attribute with a function along the lines of

Function EnableRadioButtons ( array Elements )
    For each Element in Elements
        Set Element Enabled

Or maybe something along the lines of

Function EnableRadioButtons ( array Elements )
   if  (button of interest is checked) {
      For each Element in Elements
         Set Element Enabled
   }  else {
      For each Element in Elements 
          Set Element Disabled
   }

That way the will become disabled again if the user checks the special button and then unchecks it later

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.