Am I using the CDATA correctly in code below because I am getting no error but getting warnings on start tag < starting here...
var $tbody = $('#qandatbl_onthefly > tbody'); var $tr = $("<![CDATA[<tr class='optionAndAnswer' align='center'>]]"); var $qid = $("<![CDATA[<td width='5%' class='qid'></td>]]").text(qnum); var $options = $("<![CDATA[<td><table class='option'><tbody><tr><td class='opt'>1. Option Type:</td></tr></tbody></table></td>]]"); var $video = $("<![CDATA[<td width='17%' class='video'></td>]]"); var $endtr = $("<![CDATA[</tr>]]"); var $questionType = '';
CDATA? From the given code it is not necessary to use it.scripttag(s).