Thank you , That helps- I have modified the syntax and don’t see the undefined error anymore. see the following error now, I tried using parseInt seeing your other post.
and this is how I have defined my variable:
Could you please help.Thank you