Remove element with jQuery but leave text

前端 未结 3 932
既然无缘
既然无缘 2020-12-13 13:28

I\'ve got some html that looks like this:

red text some more text blue text
3条回答
  •  醉酒成梦
    2020-12-13 14:04

    Wouldn't a simple $('#my-div').text ($('#my-div').text ()) suffice, without resorting to unwrapping?

提交回复
热议问题