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

Trying to remove a class on click parsing error #12

Closed
jsantari opened this issue Aug 3, 2020 · 3 comments
Closed

Trying to remove a class on click parsing error #12

jsantari opened this issue Aug 3, 2020 · 3 comments

Comments

@jsantari
Copy link

jsantari commented Aug 3, 2020

Trying to use the following _="on click remove .hideme to #email-form" and it throws this error: Uncaught Error: Unexpected Token : to this is basically the same as one of the examples? Whats wrong with this?
[updated] Found that in another example it should have been from instead of to - however it would not work with #email-form id - had to add a class named email-form and then use .email-form as the from selector.

@1cg
Copy link
Contributor

1cg commented Aug 3, 2020

I think the syntax is:

on click remove .hideme from #email-form

Does that work?

@jsantari
Copy link
Author

jsantari commented Aug 3, 2020

Nope - will only work if I give it a class named .email-form and change the #email-form to .email-form

1cg pushed a commit that referenced this issue Oct 1, 2020
@1cg
Copy link
Contributor

1cg commented Oct 1, 2020

Added a regression for this, works in 0.0.2

@1cg 1cg closed this as completed Oct 1, 2020
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

No branches or pull requests

2 participants