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 Chriss Miller 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
Joined
Aug 23, 2004
Messages
4
Location
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.
 
then do us a favor: don't re-type your example. copy/paste it. how can we tell you what's wrong with your code if you're not showing us real code?



*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
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