title: Get Post ID in Jquery for the popup
body: <p>I want to show the post detail on a modalbox using jquery. I have tried the following code.</p>
  
  <p>Display the links for the modalbox</p>
  
  <pre><code>&lt;?php $args = array( 'post_status' =&gt; 'publish', 'post_type' =&gt; 'post', 'orderby' =&gt; 'post_date' );
  query_posts( $args );
  if (have_posts()) :
      while (have_posts()) : the_post();
          ?&gt;  
      &lt;p&gt;&lt;a class="modalbox" id="postlink"  href="#inline"&gt;Open Popup&lt;/a&gt;&lt;/p&gt;
          &lt;?php
      endwhile;
      wp_reset_query();
  endif;
  ?&gt;
  </code></pre>
  
  <p>Code for displaying the modalbox(its value is display:none in the css, when i click on the link, popup display.</p>
  
  <pre><code>&lt;div id="inline"&gt;
      &lt;h2 id="#heading"&gt;&lt;/h2&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;a href="#"&gt;Read More&lt;/a&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Jquery Code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          $(".modalbox").fancybox();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>How can i get the post ID in the jquery so that specific post detail will display on the popup. Let me know please if it is not possible to get the ID and post detail in jquery.</p>
  
  <p>Thanks in advance.</p>