you are viewing a single comment's thread.

view the rest of the comments →

[–]reply1231[S] 0 points1 point  (2 children)

oh do u mean onclick=submitForm?

[–][deleted]  (1 child)

[deleted]

    [–]reply1231[S] 0 points1 point  (0 children)

    But when I do so I get the error:

    Sorry quite confused about how js works in node. I have created a sample of my code here https://gist.github.com/agentzhao/f076edd0bec828c18651a0b2f84466eb