44
rated 0 times
[
45]
[
1]
/ answers: 1 / hits: 27339
/ 15 Years ago, fri, february 5, 2010, 12:00:00
I want to check the size of the string entered in a text box.
what am I missing?
var com = document.getElementById(comment).value;
if(com.lenght <= 100){
alert(good);
} else {
alert(bad);
}
More From » javascript