function formatPhone(txtbx){
var txt='';
txt=txtbx.value;
txt=txt.toLowerCase;
My browser breaks on this last line and indicates that txt is undefined.
There isn't a problem with the code, I was passing this.value instead of this to the function.
I know better, it's late Friday and I just couldn't see the real problem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.