Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with var undefined

Status
Not open for further replies.

ajaac

Programmer
Aug 23, 2004
4
0
0
US
I'm missing something, please give me a hint.

function formatPhone(txtbx){
var txt='';
txt=txtbx.value;
txt=txt.toLowerCase;
My browser breaks on this last line and indicates that txt is undefined.

 
actually, my code is using txt=txt.toLowerCase().
I just mistype my example.
 
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.

Sorry to have taken up your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top