This is something that\'s driving me nuts:
I have this code and it works: I am trying to learn JavaScript before becoming addicted to JQuery. My sample project invol
May be it is just because of typo in length here:
element.txtName.value.lenght;
must be element.txtName.value.length;. If you want it to run every time user presses key , then look here: How to check string length with JavaScript
element.txtName.value.length;