I got a select tag with some options in a HTML form: (the data will be collected and processed using PHP)
Testing:
One way to do this, first one an array, 2nd an object:
Option one Option two
Edited (3 years after answering) to put both values into JSON format (using JSON.stringify()) because of a complaint that my proof-of-concept answer "could confuse a newbie developer."
JSON.stringify()