View Single Post
Old 10-16-2012, 01:33 AM   PM User | #6
rexhvn
New Coder

 
Join Date: Oct 2011
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
rexhvn is an unknown quantity at this point
Quote:
Originally Posted by Old Pedant View Post
You are missing the closing right brace } for the left brace { that follow the if.

You are also missing the left brace { for beginning the function.

Code:
   function loginvalidation()
   {
       if(document.loginsubmit.usernameform == '' )
       {
          alert('Please enter your username');
          return false;
       }
   }
It didn't seem to work, however when i added .value it works.

Thank you.
Code:
if(document.loginsubmit.usernameform.value == " )
rexhvn is offline   Reply With Quote