How to change innerHTML of childNodes in case some childnodes without tags?

That is my example of problem\[code\]<div onclick="this.childNodes(0).innerHTML='0';">1<b>2</b>3<b>4</b>5</div>\[/code\]as you see, two childnodes ("2" and "4") are tagged, others are simple text.The question is how to change innerHTML of tagged and untagged nodes (texts) in sertain div container without touching other nodes/texts?
 
Back
Top