Uncaught TypeError: document.getElementsById is not a functi
Résolu/Fermé
flexi2202
Messages postés
3795
Date d'inscription
lundi 14 mars 2011
Statut
Membre
Dernière intervention
21 avril 2024
-
Modifié le 15 août 2022 à 00:21
flexi2202 Messages postés 3795 Date d'inscription lundi 14 mars 2011 Statut Membre Dernière intervention 21 avril 2024 - 15 août 2022 à 01:02
flexi2202 Messages postés 3795 Date d'inscription lundi 14 mars 2011 Statut Membre Dernière intervention 21 avril 2024 - 15 août 2022 à 01:02
A voir également:
- Uncaught typeerror: document.getelementsbyid is not a function
- What is my movie français - Télécharger - Divers TV & Vidéo
- A d3d11-compatible gpu (feature level 11.0 shader model 5.0) is required to run the engine - Forum Jeux PC
- Minimal bash-like line editing is supported ✓ - Forum Linux / Unix
- Your messenger verification code is ✓ - Forum Facebook Messenger
- Rtc battery is low ✓ - Forum Matériel & Système
1 réponse
flexi2202
Messages postés
3795
Date d'inscription
lundi 14 mars 2011
Statut
Membre
Dernière intervention
21 avril 2024
187
15 août 2022 à 01:02
15 août 2022 à 01:02
voici le problème je devais mettre ceci document.getElementById au lieu de
document.getElementByID
source
If you have ever experienced the following error message using getElementById
:
Uncaught TypeError document.getElementbyid is not a function
You will be glad to know that the fix is trivial. Pay attention to any lowercase letters in the method name. JavaScript is case-sensitive so the b
and the start of every other word after get
should be capitalized.
Correct use looks like the following:
document.getElementById("testUrl");