| | |
radio button vs textbox ala Javascript
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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 10:52 am.
Some people get so rich they lose all respect for humanity. That's how rich I want to be.
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: ALERT and JAVA Script
- Next Thread: Javascript not working in firefox or Safari
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxhelp animate array automatically beta box bug calendar cart checkbox class codes column cookies createrange() css cursor date debugger decimal design dom download dropdown editor element enter error events explorer firefox focus form frameworks getselection google gwt html htmlform iframe image() images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jsp listbox maps masterpage math menu microsoft mimic mp4 object onmouseover parent php player post problem programming progressbar prototype rating redirect regex runtime safari scale scriptlets search select session shopping size sql starrating stars text textarea toggle validation variables w3c website window windowofwords windowsxp wysiwyg xml \n





