Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Prepending HTML using JavaScript Reply To: Prepending HTML using JavaScript

#256743
JeroenR
Participant

You can use setAttribute() for that. I have changed the pen. For example: p.setAttribute('id','yourid');.