I have a select tag that looks like that:
<select name="MySelect"></select>
At runtime, I have a javascript function that composes some HTML and returns a string that looks like this:
TheOptions = <option>Option 1</option><option>Option 2</option><option>Option 3</option>
I want to add these to the select tag and so far I have:
$('#MySelect').html(TheOptions);
However, when the code executes, it doesn't load the options in the selector. Any suggestions would be helpful.
Thanks.