This page demonstrates how to dynamically replace content in a DIV block with programmatically active, and trackable, checkboxes (with some minor changes it could be something other than checkboxes). If you are interested in seeing how to highlight text instead, please see the "jsTextElementSearch" javascript from the main javascript menu. Otherwise, explore the demo below for content replacement and feel free to download the source code.
Content to change is referenced from here. The tag set "<b>change</b>" change will be swapped out with a checkbox. If there is more than one change all instances are replaced and are individually trackable. In this case there are two instances. Once the content has been changed check the checkboxes to demonstrate how they may be tracked.