How to pass msg_id into jquery modal form?
<p>I have a following data where I am showing data from database. When i click Comment a dialog appear, there i need to show data in modal from db. but for getting data from db i need msg_id in modal form.</p>

<pre><code>&lt;?php
$msg_id = $data['message_id'];
?&gt;
&lt;a data-toggle="modal" href="msg_id=&lt;?php echo $msg_id; ?&gt;#example" class="link_comment"&gt;Comment&lt;/a&gt;
</code></pre>

<p>So here I want to pass msg_id to jquery modal form, where i can get data from db on the base of msg_id for that specific message and show it in modal box.</p>

<pre><code>&lt;div id="example" class="modal" style="display: none; "&gt;
Your Message id : &lt;?php echo $msg_id; ?&gt;
&lt;/div&gt;
</code></pre>

<p>So how can I pass $msg_id into jquery modal form.</p>
