Forum Academy Marketplace Showcase Pricing Features

Trying to set text data from javascript. (the variable is not defined)

Hi all, I’m trying to display text data on the screen by using JavaScript.
But I’ve gotten the error that the “variable is not defined”.

Could you please tell me how to solve this problem?
I would appreciate your comments.

The screen is like this.

But if I click the button, then I got the error message.

The definition of JavaScript are like followings.
The alert message just before function “bubble_fn_readcode” works properly.

And the text area definition is following.

You declare a qrval variable, but then you misspelled it qval when you call it in bubble_fn_read(qval). You’ll either have to call it qrval if these are meant to be the same variable, or declare qval before you use it.

OMG! Thank you so much…

You’re welcome! :slightly_smiling_face:

This topic was automatically closed after 70 days. New replies are no longer allowed.