adequately good

decent programming advice

written by ben cherry



all articles filed under jquery

Search/Replace in the DOM with jQuery

Ever had a need to to a text search/replace through the DOM? For articles in drafting on this blog I often use the form (TODO: something) as notes for myself to do some more research. I don't want them sticking around in the text I publish, so I highlighted them red (only for myself). Here's the script I used to accomplish that:

jQuery(function () {
	jQuery ...