Javascript in wordpress
<p>I have featured images shown for different posts of same category in a page in a specific div. I need to show the whole post related to this image in the same page in another div. I know i must use JavaScript in this. But i need some reference which i can use for this. Can anyone help me with this? I am using the following code to show the images</p>

<pre><code>&lt;?php
/*
Template Name: Meet The Team Template
*/
?&gt;
&lt;?php get_header(); ?&gt;
&lt;div id="meet_posts" class="narrowcolumn"&gt;
&lt;?php 
    $recent = new WP_Query("cat=6&amp;orderby=title&amp;order=ASC"); 
    while($recent-&gt;have_posts()):$recent-&gt;the_post();
    $desc_values = get_post_custom_values("description");

?&gt;
&lt;div id="meetteam_featured_image"&gt;
    &lt;a href="&lt;?php the_permalink() ?&gt;" rel="title"&gt;
        &lt;?php
            if ( has_post_thumbnail() ) 
            { 
                the_post_thumbnail();
            }
        ?&gt;
    &lt;/a&gt;
&lt;/div&gt;
&lt;?php endwhile ?&gt;
&lt;/div&gt;

&lt;?php get_footer(); ?&gt;
</code></pre>

<p>Thanks in advance</p>
