Create select tag with parameters in JQUERY
2 answers
You are using strings incorrectly. You have double quotes in quoted dubble strings, try this instead, also the string in javascript doesn't span multiple lines.
$(' <select id="jSelect">'+
'<option value="1">String</option>'+
'<option value="2">Number</option>'+
'<option value="3">Date</option>'+
'</select>').appendTo(".menu li")
+2
a source to share