Skip to content

How can i call leanModal inside an conditional IF?  #58

Description

@amrigo

Thank you for sharing this great project.

How can i call leanModal inside an conditional IF?

I have an if inside an $( document ).ready(function() { if(){}}

I just try:
$( document ).ready(function() { if() { $("#submitButton").leanModal(); } }

The modal does not open, i check the files (CSS/JS) and they are declared .

Could you please provide an example, i think it is a very commom situation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions