Use JQuery.append( html_fragment)
to dynamically build & append your desired HTML elements, into the TD or DIV container where you need them.
See: http://api.jquery.com/append/ and also jQuery document.createElement equivalent?
For example:
var prefix = "cond0";
var content = "<select name='"+prefix+"_field'>";
// generate select options here..
content += "</select>";
//
var container = $( "#"+prefix);
container.append( content);
Hope this helps.