display a desired tab upon clicking a link
<p>I have a facebook bubble notification. If the user would click the View All messages, the messages tab should be opened. How can I achieve this?</p>

<p>this is what I've tried:</p>

<pre><code>&lt;script&gt;
$('.view_applications').click(function(){
$( "#tabs" ).tabs("select", "#tabs-5" );
return true;
});&lt;/script&gt;


&lt;div class="bbbbbbb" id="view&lt;?php echo $id; ?&gt;"&gt;
                &lt;div style="background-color: #F7F7F7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; position: relative; z-index: 100; padding:8px; cursor:pointer;"&gt;
                &lt;a href="#" class="view_applications" id="&lt;?php    echo $id; ?&gt;"&gt;View all &lt;?php echo $comment_count; ?&gt; application/s&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;
</code></pre>

<p>But it's not displaying the desired tab. Any help is appreciated. Thanks.</p>
