I have a series of elements which should appear only in the printed version of the page. Before doing so, though, I need to edit some of them removing some extra chars. This is how I've done it:

$(".print").each(function(i) {
	$length = $(this).text().length;
If I alert the second command inside the loop I see the correct substring. However, when I preview the printed page, I still see the original string. What am I missing?