cannot type in the textbox if radio button is not clicked
anybody help me with this code?
all i know is there will pop-up a msgbox if you click the radio button without writing in the textbox..
like this
Code:
<SCRIPT LANGUAGE="VBSCRIPT"> sub gabz () dim name number = document.form1.Number.value name = document.form1.Name.value if name="" or number="" then msgbox "you must enter anything in the textbox!",16 end if end sub </script>
pls..i just want to know the codes that there will pop-up msg saying you must click the radio button so that you can write in the txtbox..vbscript pls
Re: cannot type in the textbox if radio button is not clicked
Why mess around with a message box.
Disable the textbox in design and enable it in the click event of the option button.