0
Can someone tell me why isn't this code working.
5 Answers
+ 1
1. change the callback arguments for every onclick to: this (small t) NOT This (capital t);
2. initialize the inputLbel after the document loads:
var inputLbel;
window.onload = function(){
inputLbel = document.getElementById("inputLbel");
}
3. sometimes you wrote inputLble and inoutLble instead of inputLbel. Correct those;
If you do that it should work.
Hope I helped : )
+ 1
Adam is correct. Change "This" to "this" inside your calls to the onclick functions.
+ 1
I should have been more clear. Change it in the HTML.
+ 1
thanx it works
ššš
0
All but the top 2 calls to pushButton reference This with a capital T. Javascript is case sensitive. You need this with a lowercase t. That's why it throws the undefined error for This.