I'm trying to replace some html tags which are being generated by ajax script. Ajax script generates the following ul list:
<ul>
<li class="odd">some text</li>
<li class="even">some text</li>
<li class="odd"><hr /></li>
<li class="even">some text</li>
</ul>
I need to replace <li class="odd"><hr /></li>
with </ul><hr /><ul>
. I guess it has to be some javascript to dynamically replace those tags everytime the list is being generated, but I don't know how to do it exactly. Could you please point me to the right track?
Any help is greatly appreciated.