This code produces a mess… What am I doing wrong?
cell=$("<td>");
if(normal.exam_type=="Exam_Boolean")
{
var input=cell.append("<input>").last();
input.attr("type","hidden");
input.attr("name","exam.exam_Normal['" +normal_id_unique + "'].boolean_v");
input.attr("value",normal.normal_boolean);
I’d do it this way:
[newlines before dots are just for readability.]
You might also need to put the cell in the document somewhere before appending stuff. I’m not sure