SyntaxFix
Write A Post
Hire A Developer
Questions
Since id is an attribute don't create an id element, just do this:
myPara.setAttribute("id", "id_you_like");