Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create an object on the fly  RSS feed

 
samuel marin
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a select with a OnChange Function. I would like to know how to create a different object depending on the selection on the Select.

Example:

MySelect have Option 1 and Option 2, so



I'm using the object under <body> and it's working, but when I'm trying to use it under a <script> does not work.

This is the object I'm trying to create: (It is a map) so what I'm trying is to change the values or map depending on the selection of the Select.




Thank you very much
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!