document is not defined
prashantbhat84 opened this issue · comments
Prashant Bhat commented
var form = document.querySelector('#productForm')
executing the above line gives the following error:
TypeError: document.querySelector is not a function
Yosh commented
This should be run in the browser; document is a global
…On Wed, Apr 5, 2017 at 11:35 AM Prashant Bhat ***@***.***> wrote:
var form = document.querySelector('#productForm')
executing the above line gives the following error:
TypeError: document.querySelector is not a function
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWlelAo9W9SBfmWHNfG3GwdUrPCypInks5rs1xngaJpZM4Mz95Y>
.
Jonny Buchanan commented
What he said 👍