I have some code here that will do the following. The code creates an element \"p\" then I append it to a \"div\" in the HTML. I would like that \"p\" I just created have an
You set an element's id by setting its corresponding property:
myPara.id = ID;