Login | Register | FAQ
Anonymous

Lesson 16 - Small Typo

+ Post a reply

Page 1 of 1


Lesson 16 - Small Typo

by bWildered1 » Tue Jul 02, 2013 1:28 pm

Hi.

There is a small typo in the very first javascript example ('How do I validate form fields').

var userName = document.getElementById("txtName").value;

if (name.length == 0)

{

The variable declared is called 'userName' but in the if() block an undeclared variable called 'name' is used.
User avatar

bWildered1

  • Posts: 8
  • Joined: Tue Jul 02, 2013 11:20 am

Re: Lesson 16 - Small Typo

by XainPro » Fri Jul 05, 2013 10:08 am

thanks for the information it will be corrected shortly.
User avatar

XainPro

  • Posts: 2401
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1