Is there a way to \'pre-build\' a snippet of HTML before adding it to the DOM?
For example:
$mysnippet.append(\"hello\"); $mysni
Yes pretty much exactly how you have done it
Some extension of this...
$('').attr('id', 'yourid').addClass('yourclass').append().append()... and then finally .appendTo($("#parentid")); 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
and then finally
.appendTo($("#parentid"));