I don't know if I am using the .after incorrectly but it is my understanding that it should display the element after the one I specify? - the hello world selection box after the Option1 select?
<select id="cselect" >
<option value="Option 1">Option 1</option>
</select>
$('#cselect').chosen();
var test = '<select id="dselect" ><option>Hello World</option></select>';
$('#cselect').after(test);
$('#dselect').chosen();
fiddle here - http://jsfiddle.net/jHvmg/4/
What am I missing? TIA