I am creating a paragraph dynamically adding it and then assigning an id to it. While the paragraph gets created, the id does not. I have kept an alert which returns undefin