I am using JQuery to dynamically (based on user choice) create tag. User enters require options in a text box and my code creates select tag of it. Script is:
var s = $(""); for(var val in data) { $("", {value: val, text: data[val]}).appendTo(s); }
after the for loop, wrap all the content with TableRow and Cells like this , Jquery Wrap()
$(s).wrap('');