techwithtim / Flask-Web-App-Tutorial

Code for the note storing flask web app made during a YouTube video.
918 stars 1.01k forks source link

updated onclick() parameter passing in javascript #112

Open AusafMo opened 1 year ago

AusafMo commented 1 year ago

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

santeriq commented 1 year ago

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