0
What is the corect instruction id paragraphe?
I have error line 28. https://code.sololearn.com/W6RVkKCFu1J2/?ref=app
5 odpowiedzi
+ 2
Can you explain more about error? What you were expecting and what you are getting?
+ 1
You have used wrong property. Add is not the correct property.
+ 1
Malick Diagne you can use this also...prg.setAttribute("id", "example_id")
0
It appears that you are trying to set an id for the paragraph element.
The HTML Element object does not have a property nor method named idList.
You can reference the link below to solve your issue.
https://www.w3schools.com/jsref/dom_obj_all.asp
0
I want to do something like paragraph.classList.add like id. I want to do JavaScript id. Thanks you sir.