Ok, thatโs what I still have .. thanks Paolo.
And it works fine, but only if I have existing switch options.
What if I need to create a NEW switch without any existing ones?
Ultimately, what I want to do is create an array of options, skip them and list the options as radio buttons. Therefore, initially in the div 'abc' there will be no radio buttons.
Thanks in advance!
<script> $(document).ready(function() { </script> <form id='abcdef'> <select id="aaa"> <option>red</option> <option>blue</option> <option>other</option> </select> <div id="abc"> Input<BR> option 1 <input type="radio" name="colorinput" value="1" /> option 2 <input type="radio" name="colorinput" value="2" /> </div> <BR> </form>
Jason
source share