d3v4 — 2012-01-19T06:18:12-05:00 — #1
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:
$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?
mrbaseball34 — 2012-01-19T11:51:26-05:00 — #2
Doesn't look like you are setting the value to the substring.
d3v4 — 2012-01-19T13:24:33-05:00 — #3
mrbaseball34 — 2012-01-19T14:41:52-05:00 — #4
You aren't changing the original string with the edited version.
d3v4 — 2012-01-20T08:36:56-05:00 — #5