thread216-1705590
@feherke
Some time ago you helped me removing a character from a text inside a div element. That works great, but now I need to have 2 characters removed with an ID value of 'mr' and 'fn' respectively. Please see the thread linked to with the working code of removing 1 character. Below is an extract of the code and what I tried but that does not extract both ID values:
else if (what.childNodes.nodeType == Node.ELEMENT_NODE && what.childNodes.id != 'mr' || 'fn')
else if (what.childNodes.nodeType == Node.ELEMENT_NODE && what.childNodes.id != 'mr' && 'fn')
I hope I'm clear enough here.
Thanks again for your help.
Philip
@feherke
Some time ago you helped me removing a character from a text inside a div element. That works great, but now I need to have 2 characters removed with an ID value of 'mr' and 'fn' respectively. Please see the thread linked to with the working code of removing 1 character. Below is an extract of the code and what I tried but that does not extract both ID values:
else if (what.childNodes.nodeType == Node.ELEMENT_NODE && what.childNodes.id != 'mr' || 'fn')
else if (what.childNodes.nodeType == Node.ELEMENT_NODE && what.childNodes.id != 'mr' && 'fn')
I hope I'm clear enough here.
Thanks again for your help.
Philip