I am currently using a JavaScript replace function to update text associated with two radio buttons on a predefined form.
Here is the code snippet for the script:
document.body.innerHTML=document.body.innerHTML.replace("Payment by <b>Moneybookers</b>
e-wallet<br>","");
document.body.innerHTML=document.body.innerHTML.replace("Maestro, Visa and other credit/debit cards by <b>Moneybookers</b>","Pago con Diners Club, Mastercard o Visa");}onload=x;
While this script functions correctly in Chrome and Firefox, it does not seem to work in Internet Explorer.
I suspect that the issue may be related to the presence of commas, forward slashes, or hyphens within the text I am trying to replace. When I experiment with simple text replacements without these characters, it works seamlessly in Explorer. However, when attempting to replace more complex text like "Maestro, Visa and other credit/debit cards by Moneybookers," Explorer fails to execute the script properly. I have tried various approaches but so far have been unsuccessful in resolving this issue. Any assistance or suggestions would be highly appreciated!