title: Modal popup open while calling a function
body: <p>I am using the below code to show the login modal popup. Its working well. But i need another one function to show the model popup without button click. If i call that function means the same popup should be appear. Please help me to do this.</p>
  
  <pre><code>&lt;a id="modal_trigger" tabindex="-1" href="#modal" class="btn"&gt;Login &lt;/a&gt;
  
  &lt;script type="text/javascript"&gt;
          $("#modal_trigger").leanModal({ top: 200, overlay: 0.6, closeButton: ".modal_close" });
  
          $(function () {
              // Calling Login Form
              //$("#login_form").click(function () {
              //$(".user_login").show();
              //return false;
              //});
  
          })
  &lt;/script&gt;
  
  &lt;div id="modal" class="popupContainer" style="display: none;"&gt;
          &lt;header class="popupHeader"&gt;
              &lt;span class="header_title"&gt;&lt;i class="fa fa-user"&gt;&amp;nbsp; Login&lt;/i&gt;&lt;/span&gt;
              &lt;span class="modal_close"&gt;&lt;i class="fa fa-times"&gt;&lt;/i&gt;&lt;/span&gt;
          &lt;/header&gt;
          &lt;section class="popupBody"&gt;
              &lt;!-- Social Login --&gt;
              &lt;div class="user_login"&gt;
                  &lt;form&gt;
                      &lt;label&gt;Username&lt;/label&gt;
                      &lt;input type="text" /&gt;
                      &lt;br /&gt;
  
                      &lt;label&gt;Password&lt;/label&gt;
                      &lt;input type="password" /&gt;
                      &lt;br /&gt;
  
                      &lt;div class="checkbox"&gt;
                          &lt;input id="remember" type="checkbox" /&gt;
                          &lt;label for="remember"&gt;Remember me on this computer&lt;/label&gt;
                      &lt;/div&gt;
  
                      &lt;div class="action_btns"&gt;
                          &lt;div class="one_half"&gt;&lt;a href="#" class="btn back_btn"&gt;&lt;i class="fa fa-angle-double-left"&gt;&lt;/i&gt; Back&lt;/a&gt;&lt;/div&gt;
                          &lt;div class="one_half last"&gt;&lt;a href="#" id="login_form" class="btn btn_red"&gt;Login&lt;/a&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
                  &lt;a href="#" class="forgot_password"&gt;Forgot password?&lt;/a&gt;
              &lt;/div&gt;
              &lt;/section&gt;
  &lt;/div&gt;
  </code></pre>