•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 426,901 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,347 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 748 | Replies: 3
![]() |
| |
•
•
Join Date: Nov 2006
Posts: 17
Reputation:
Rep Power: 2
Solved Threads: 0
Hi,
I have some radiobuttons which I grouped them as set1..and another set of radiobuttons which I grouped as set2 which are disabled by default.When I click a radiobutton in set1 all the radiobuttons in set2 should be enabled and when I uncheck, all the radiobuttons should again become disabled.
How can this be done..plzz reply.
I have some radiobuttons which I grouped them as set1..and another set of radiobuttons which I grouped as set2 which are disabled by default.When I click a radiobutton in set1 all the radiobuttons in set2 should be enabled and when I uncheck, all the radiobuttons should again become disabled.
How can this be done..plzz reply.
You can use if statement using ur radio button groups which are, in ur case set1 and set2, and inside them have statements like
And another thing you may post ur code so that we can be aware of what we are trying to achieve right??
•
•
•
•
document.Formname.NameOfTheRAD.selected="False" or "true"
And another thing you may post ur code so that we can be aware of what we are trying to achieve right??
Last edited by Traicey : Apr 9th, 2008 at 2:55 pm.
Some people get so rich they lose all respect for humanity. That's how rich I want to be.
•
•
Join Date: Nov 2006
Posts: 17
Reputation:
Rep Power: 2
Solved Threads: 0
SET1
SET2
in the page load
javascript function is
<asp:RadioButton ID="rdintrvl" runat="server" Text="Interval" GroupName="set1" />SET2
ASP Syntax (Toggle Plain Text)
<asp:RadioButton ID="rddays" Text="Days" GroupName="set2" runat="server" Enabled="False"/> <asp:RadioButton GroupName="set2" ID="rdweeks" Text="Weeks" runat="server" Enabled="False"/> <asp:RadioButton GroupName="set2" ID="rdmonths" Text="Months" runat="server" Enabled="False"/>
in the page load
rdintrvl.Attributes.Add("onclick", "enable();");javascript function is
JavaScript Syntax (Toggle Plain Text)
function enable() { document.getElementById('<%=rddays.ClientID%>').disabled = false; document.getElementById('<%=rdweeks.ClientID%>').disabled = false; document.getElementById('<%=rdmonths.ClientID%>').disabled = false; }
Last edited by peter_budo : Apr 11th, 2008 at 7:15 pm. Reason: Keep It Organized - please use [code] tags
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: IIS Setup for AJAX
- Next Thread: javascript onclick is not working in IE7 & IE6


Hybrid Mode