Home › Forums › JavaScript › Prepending HTML using JavaScript › Reply To: Prepending HTML using JavaScript
July 12, 2017 at 7:58 am
#256743
Participant
You can use setAttribute()
for that. I have changed the pen. For example: p.setAttribute('id','yourid');
.