How can I use XPath and DOM to replace a node/element in php?

前端 未结 2 1629
灰色年华
灰色年华 2020-12-05 20:21

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
    ');

提交回复
热议问题