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

How to close the modal?? #129

Open
dusanstojanovic opened this issue Mar 24, 2020 · 1 comment
Open

How to close the modal?? #129

dusanstojanovic opened this issue Mar 24, 2020 · 1 comment

Comments

@dusanstojanovic
Copy link

I can't for the life of me figure out how to close the modal. The pen is here: https://codepen.io/stdusan/pen/jOPepGg

@jesseyuen
Copy link

jesseyuen commented Mar 29, 2020

Hi @dusanstojanovic

You were on the right track in your pen yet needed a minor syntax tweak and to reference a different selector in the click event. Try this:

$('.close').click(function(){
    $('.modaal').modaal('close');
});

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