testing - i want append html content into DIV tag -
var test ="<html><head><title>json template</title><script type='text/javascript'>widgetbuilder.render({'displayparams':{'wtitle':'columns','target':'wid1','classlist':{"+result+"},'displimit':'5'},'contentparams':{'channel':'news','category':'columns','wid':'widget1','entity':'article','limit':'6'}});</script></head><body><div><ul id='wid1'></ul></div></body></html>"; $("#lightbox-panel").append(test);
the tag nothing more container other tags. body tag, div elements block elements , work behind scenes grouping other tags together. use following attributes div element, else should reserved css
id
width
height
title
style
Comments
Post a Comment