title: How to send parameter json array when modal open?
body: <p>Demo and full code is like this : <a href="https://jsfiddle.net/xzxrp7nn/5/" rel="nofollow">https://jsfiddle.net/xzxrp7nn/5/</a></p>
  
  <p>My HTML code is like this : </p>
  
  <pre><code>&lt;div id="tes"&gt;
  
  &lt;/div&gt;
  
  
  &lt;!-- Modal Currency--&gt;
  &lt;div class="modal fade" id="priceModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
  
  
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
  
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /.modal-content --&gt;
      &lt;/div&gt;
      &lt;!-- /.modal-dialog --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My Javascript code is like this :</p>
  
  <pre><code>$(document).ready(function(){
  
          var priceModal = '{"attributes":{"Code":"DBL","Total":"200000"},"DayPrice":{"Date":"2016-05-26","Rate":"200000"}}';
  
          var isitable = '&lt;button class="btn blue tes_button" data-toggle="modal" data-target="#priceModal" id="priceModal='+priceModal+'"&gt;tes&lt;/button&gt;';
  
          $("#tes").html(isitable);
          $('#priceModal').on('show.bs.modal', function(e) {
              var param = e.relatedTarget.id;
              console.log(param);
          })
      })
  </code></pre>
  
  <p>When open modal, I want get parameter priceModal. I do <code>console.log(param);</code> in <code>$('#priceModal').on('show.bs.modal', function(e) {</code>. </p>
  
  <p>But the result : <code>priceModal={</code></p>
  
  <p>Any solution to solve my problem?</p>
  
  <p>Thank you</p>