title: How to get then button data-title value in jQuery?
body: <p>I want to know how to get the value of the button data-title (prbModalExt2.html) in jquery and insert it into a variable URL. </p>
  
  <p>At this time the variable URL is created with the value <code>prbModalExt1.html</code>.</p>
  
  <pre><code>&lt;div class="container "&gt;
      &lt;div class="jumbotron"&gt;&lt;a class="btn btn-primary" data-toggle="modal" href="#myModal" id="modellink" data-title="prbModalExt2.html"&gt;Show Modal&lt;/a&gt;&lt;/div&gt;
      &lt;div class="modal-container"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          var url = 'prbModalExt1.html';
          jQuery('#modellink').click(function (e) {
              $('.modal-container').load(url, function (result) {
                  $('#myModal').modal({ show: true });
              });
          });
      });
  &lt;/script&gt;
  </code></pre>