Throughout the DOM I have values (innerHTML) that I want to replace.
For example
<div id="id1">N/A</div>
...
...
<div id="id2">N/A</div>
...
...
<div id="id3">n/a</div>
...
...
and I want to substitute if with a 0.
How do I do this with a single jQuery call?
CLARIFYING QUESTION
I want to select those elements that have N/A or n/a as values (innerHTML), regardless of if they are in a div
, a span
, a td
...