title: Materialize Cssmodal showing $(..)leanmodal is not a function Error
body: <p>When I try to create a a materialize css moal using the below code , I am getting Error.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="~/Scripts/jquery-1.10.2.js"&gt;&lt;/script&gt;
  
  
  &lt;link href="~/css/materialize.css" rel="stylesheet" /&gt;
  &lt;script src="~/js/materialize.js"&gt;&lt;/script&gt;
  
  &lt;a id="btnReset" class="waves-effect waves-light btn modal-trigger" data-target="modal1"&gt;Reset&lt;/a&gt;
  
      &lt;!-- Modal Structure --&gt;
      &lt;div id="modal1" class="modal"&gt;
  
  
          &lt;div class="modal-content"&gt;
              &lt;h4&gt;Warning !&lt;/h4&gt;
              &lt;p&gt;Do you really want to reset ?&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
              &lt;a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat"&gt;Yes&lt;/a&gt;
              &lt;a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat"&gt;No&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;script&gt;
  
      $(document).ready(function () {
          // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
          $('.modal-trigger').leanModal();
  
      });
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/sCaRM.png" rel="noreferrer">Error Image</a></p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/10390338/leanmodal-not-a-function">this question</a> also.</p>