Say I have the following html
$html = \' some text> 2条回答 孤城傲影 (楼主) 2020-12-05 21:05 use jquery hide() first to hide particular div and then use append to append new div $('#div-id').remove(); $('$div-id').append(' this is new'); 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
some text>
use jquery hide() first to hide particular div and then use append to append new div
$('#div-id').remove(); $('$div-id').append(' this is new');