Site Search:
Sign in | Join | Help
4Penny.net

Javascript

Stuff that everyone needs to know about Javascript

Used Javascript to check a radio box

In a recent project I needed to check a radio button based on whether or not a text field was populated.

<script language="javascript" type="text/javascript">
    if (document.frmCreateAccount.EMail.value=="")
      {
        document.frmCreateAccount.OKToEMailYes.checked=true;
      }
    else if (document.frmCreateAccount.EMail.value!="")
      {
      }
</script> 

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About Steve Gray

Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.