Im trying to paste with html content (the one in the var) and paste it in <fieldset id="previewDataBlock">
Obviously Im doing something wrong:
function createPreviewBlock(){
var emptyBlock = '<ul class=emptyList id=previewBlock>' +
'<li id=periodLi></li>' +
'<li id=companyLi></li>' +
'<li id=industryTypeLi></li>' +
'<li id=idustriaDeEmpresaLi></li>' +
'<li id=jobTypeLi></li>' +
'<li id=actionsLi></li>' +
'</ul>';
emptyBlock.appendTo('fieldset#previewDataBlock');
$('ul#previewBlock').removeClass('emptyList').css('display', 'block');
}
because I'm getting this error:
TypeError: emptyBlock.appendTo is not a function { message="emptyBlock.appendTo is not a function", more...}