I've a piece of DOM like this
<table style="display:none;" id="risposta-campione">
<tr>
<td>
<label>Risposta</label><textarea id="risposta_0000" name="risposta_0000" cols="35" rows="2"></textarea>
<button type="button" onclick="cancellaRispostaDomanda('0000')" class="cancella-risposta"></button>
<button type="button" onclick="aggiungiRispostaDomanda('0000')" class="aggiungi-risposta"></button>
</td>
</tr>
</table>
I want to replace all '0000' occurrences with jquery without getting each element.
Is this possible?
I tried this:
elem = $('#risposta-campione').text() // how convert dom to string?!
elem.replace('0000', 'hello');
with no solution :-/