jQuery: How to replace Html/text using class or id

jQuery(document).ready(function () {
var replaced = jQuery(“#myclass”).html().replace(‘old text’,’new text’);
jQuery(“#myclass”).html(replaced);
});

Advertisements