I have a simple JSON code:
[{\'1\':\'Name\'}, {\'2\', \'Age\'}, {\'3\',\'Gender\'}]
I have a select tag in my HTML:
Just for kicks here is an answer in pure javascript, also you probably do not need an array for this just a simple object will suffice