Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated onclick() parameter passing in javascript #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AusafMo
Copy link

@AusafMo AusafMo commented Mar 7, 2023

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

on click event parameter passing formatted from 
` onClick ="deleteNote({{note.id}})" `
to
`onClick ="deleteNote('{{note.id}}')"`
now there's no "property assignment error"
@santeriq
Copy link

santeriq commented May 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants