•
•
•
•
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 331,562 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 4,664 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: 487 | Replies: 1
![]() |
| |
•
•
Join Date: Mar 2008
Location: South Africa
Posts: 118
Reputation:
Rep Power: 1
Solved Threads: 12
There are many ways to do that but I'd rather use this method
javascript Syntax (Toggle Plain Text)
<script language ="javascript> <!-- function whatever() { var TextBoxName = document.FormName.TextBoxName.disabled = true; var radioButtonNameYes = false; var radioButtonNameNo = false; if(document.nameOftheForm.radioButtonName(yes).checked) { radioButtonName = true; document.FormName.textBoxName.disabled=false; document.FormName.textBoxname.value = " "; } else { //do the "No" radio button } } //--> </script>
Last edited by Traicey : Mar 25th, 2008 at 9:52 am.
You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the tallest guy in the NBA is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush', 'Dick', and 'Colon'. By Chris Rock
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- Previous Thread: ALERT and JAVA Script
- Next Thread: Javascript not working in firefox or Safari


Hybrid Mode