I'm doing something like:
<p>SQL</p>
<p>sql</p>
<p>sQl</p>
<p>SqL</p>
<script type="text/javascript">
var ps = document.getElementsByTagName('p');
for(var i = 0; i < ps.length; i++) {
var p = ps[i];
p.childNodes[0].nodeValue.replace(/sql/gi, 'VB.NET');
p = null;
}
</script>
But it's not replacing the text. What's wrong? Thank you.