1
rated 0 times
[
3]
[
2]
/ answers: 1 / hits: 30988
/ 12 Years ago, tue, january 29, 2013, 12:00:00
I have a simple form like this:
<form method=post id=login>
Username: <input type=text value= name=usr />
Password: <input type=password value= name=pw/>
<input type=submit id=log name=log value=Login style=width:250px;/><br/>
</form>
But i keep getting cannot read property for my javascript with this line:
var usr = login.usr.value;
var pw = login.pw.value;
What is the reason i get this error ?
More From » javascript