removeChild() isn't working

Hi experts,

I wanted to remove the character " | " typed from keyboard on a ASPX page. But the " | " is on ASPX page which cannot be accessed. Can javascript remove the " | " listed on the ASPX page?

<td class=“prog-asset”> | <a href=“/global_id=002350”>Video</a> | <a href=“global_id=002350”>Photography</a> | <a href=“global_id=002350&”>Press Releases</a> |
</td>

Any helps would be gratefully appreciated it!!!

Yes it can. Just loop through the children of that prog-assets TD element, and wherever you find space-bar-space replace it with something else, such as only a space.

Are you looking for a pointer in the right direction, or are you looking for someone to do the work for you?

May be it’s me, but i did not saw the code of the “removeChild()” that you tried, if you got it, post it and then we can see why it does not work.

By the way, if the " | " comes from the server, in your place i would remove it from there, not at the client.

See you :cool:

Thanks. I have solved that problem. Appreciated for your time.