jQuery - remove specific word from element

0 votes
188 views
added Jul 12, 2019 in jQuery by LC Marshal Captain (25,790 points)
$(':contains("for sale")').each(function(){
  $(this).html($(this).html().split("for sale").join(""));
});

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...