SyntaxFix
Write A Post
Hire A Developer
Questions
For those who just like me are newbies in JS and getting undefined instead of text value make sure that your id doesn't contain invalid characters.
undefined
id