CanaryNoir
1/26/2015 - 6:16 PM

replace text

replace text

$(function() {
  $(".element span").text(function(index, text) {
    return text.replace('British Pound', 'GBP');
  });
});
replace html text with new html text

$('.pseudo-breadcrumb-total-results').html(function(i, oldhtml) {
  return oldhtml.replace('Se han encontrado', 'Found').replace('productos', 'products');
});

replace with delay
<script>
  $(window).load(function() {
    setTimeout(
      function() 
      {
        $("[id$='_panelChairs']").html("<p><b>Program Chairs:</b> Tina Mosaferi, MD &amp; Julie Kim, MD</p>"); // 2023 chairs
      }, 400);    
  });
</script>
$(".brakes").each(function() {
      var str = $(this).html();
      str = str.split("|").join("<br>");
        //console.log(str);
      $(this).html(str.replace($(this).html(),str));
    });