• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help - question on passing field ID to javascript function using onblur  RSS feed

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use a javascript validation function to check the value entered by a user. However, I am getting an UNDEFINED value when I do an alert in my javascript function which tells me I may(?) have a syntax issue on what I'm passing into the javascript onblur function on my text box?

Any help/direction would be appreciated. Thank you.

Here is function denoted in my text box field:



The checkdate javascript function is pretty short and simple:


 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I got this resolved.

It was a syntax issue in what I was passing into the checkdate(). The syntax should have been denoted as:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!