[
{id: 5, text: "My Text Here", extra_field: "Extra Value"}
]
When I want to set an initial value, how do I get that extra_field data in there? A regular option tag.
eg.
<select>
<option value="5" selected>My Text Here</option>
</select>
works for the value/text, but I can't figure out how to get the extra_field in there so I can reference it later. I'm hoping there's an easy way to do this (eg. data tags, or somehow passing in a json hash as the selected value instead of option tags).
Thanks for any help/advice!