Flask-Web-App-Tutorial
Flask-Web-App-Tutorial copied to clipboard
updated onclick() parameter passing in javascript
on click event parameter passing formatted from
onClick ="deleteNote({{note.id}})"
to
onClick ="deleteNote('{{note.id}}')"
In Inline-Javascript, eventhandling is onclickevent = "func('parameter')"
.Where parameter in this case should be inline variable block {{ parametervalue }}
now there's no "property assignment error" or expected ','
error
man I was struggling with this one for quite a while... I was like why is this not working when its exactly as in the video