title: i tried loading html page to div using jQuery ajax
body: <p>trying to load html page to div using jQuery ajax im pretty sure it's right but i don't know why exactly it's not working.
  that's my code:</p>
  <pre><code> &lt;div class=&quot;second&quot;&gt;
  
  &lt;/div&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
    $(function(){
      $(&quot;button&quot;).on(&quot;click&quot;,function(){
      $('#second').load($(this).data(&quot;page&quot;));
    });
    });
    &lt;/script&gt;
  </code></pre>