title: Pass data attribute to modal bootstrap
body: <pre><code>&lt;a class="my_link" data-val="user1" href="#"&gt;modal link&lt;/a&gt;
  </code></pre>
  
  <p>I have this link to open a bootstrap modal, but I need to pass data attribute "data-val". I tried with javascript but I didn't get it. Can you please help me?</p>