Támogatás keresése

Kerülje el a támogatási csalásokat. Sosem kérjük arra, hogy hívjon fel egy telefonszámot vagy osszon meg személyes információkat. Jelentse a gyanús tevékenységeket a „Visszaélés bejelentése” lehetőséggel.

Learn More

A témacsoportot lezárták és archiválták. Tegyen fel új kérdést, ha segítségre van szüksége.

the JS statement document.getElementsByName("PME_data_myfield").item(0).outerHTML=""; is not executed in FF, it works on all other browsers

  • 1 válasz
  • 10 embernek van ilyen problémája
  • 14 megtekintés
  • Utolsó üzenet ettől: cor-el

more options

I am trying to remove an input element from a form with the above statement in a javascript. It works on all other browsers but not on FF. It does not generate an error either. Instead of removing the item it just seems to be ignoring the statement.

I remove the element with the above statement and then re create a new one with document.createElement. In FF it duplicates the element.

I am trying to remove an input element from a form with the above statement in a javascript. It works on all other browsers but not on FF. It does not generate an error either. Instead of removing the item it just seems to be ignoring the statement. I remove the element with the above statement and then re create a new one with document.createElement. In FF it duplicates the element.

Összes válasz (1)

more options

Firefox only supports innerHTML and not outerHTML, so you need to use other code for Firefox.

See e.g.:

Módosította: cor-el,