you can do it by using clone() and html() method.
eg.
$(function(){
(
var tempSecListString = "<select id="secId">";
$("data").each(funtion(){
if(!$(this).is(:checked)){
tempSecListString + = "<option value=""+ $(this).val()+ ""></option>"
}
});
tempSecListString + = "</select>";
var $htmlElement = $(tempSecListString);
$("#secId").html($htmlElement);
)
});
in my suggestion
Its suicidal to do this, if you can move this code to server side just do it :-D