Magic!!!
If you get the data in any way
replace the dropdown with .html () or .text ().
populate ul and li and concatenate into a type variable
var newcontent = "<ul> <li>1</li> <li>2</li> <li>3</li> </ul> "
I assume the select box is in a div with id "content"
replace content with ('#content').html(newcontent )
or text.
NB. You should get the data and create ul li. then you can replace
source share