nichemtktg — 2012-05-14T23:01:03-04:00 — #1
How do you create an id for an element?
I successfully created a paragraph with:
var newLink = document.createElement('p'); //create paragraph
and tried (unsuccessfully) to create an id with:
What's the right way?
mittineague — 2012-05-14T23:21:22-04:00 — #2
That's the right way, kinda sorta
newlink is undefined, try newLink instead.
nichemtktg — 2012-05-16T20:12:22-04:00 — #3
Thanks Mittineague. Sorry it took so long to thanks you. I was out for a couple days.