2013-07-12 37 views

回答

0

我需要做

dataTable.fnAddData(["<input type='checkbox' id='checkboxID'/>"]); 
jQuery('#checkBoxID').show(); 
0

您需要在转义字符前添加\

dataTable.fnAddData(["<input type=\\"checkbox\\">"]); 

检查这个SO Question

+0

\\“导致”元素列表“后面的”SyntaxError:missing“与Firebug。 – OtagoHarbour

+0

'['']'试试这个。 – Praveen

+0

我试过['input type =“复选框'/>']。没有错误,但没有出现。 – OtagoHarbour