Results 1 to 2 of 2

Thread: cannot type in the textbox if radio button is not clicked

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    14

    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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width