• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create an object on the fly

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic