View Single Post
Old 10-16-2012, 01:03 AM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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;
       }
   }
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote