/ Published in: jQuery
Finds a matching string in a DOM element and replaces it with another string.
Originally used to change "[Entries] in CategoryA" to "[Projects] in CategoryA".
Expand |
Embed | Plain Text
$("#header h2").each(function(){ $(this).text($(this).text().replace("swap this", "for this")); });
You need to login to post a comment.
