jquery remove text partially

前端 未结 3 1225
逝去的感伤
逝去的感伤 2020-12-21 06:09

Can i use jQuery to remove part of a text within a div.

Like so:

Published May 18th 2011 - Approuved - Expire May 18 th 2
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 06:54

    $(".entry").html(($(".entry").html().replace("Approuved - Expire May 18 th 2012","")))
    

提交回复
热议问题