Show tab without refreshing whole page
<p>I have following code in my php page. These are two tabs Inbox and sInbox. When user clicks on them it refreshes whole page to go to other tab. Is there a way to make these tabs so that when user click on one of the tab there is no page refresh? When answering please provide full code example as i am a beginner.</p>

<pre><code> &lt;ul id="topTabs"&gt;
        &lt;li class="selected"&gt;&lt;a href="acc/inbox"&gt; Inbox &lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="acc/sinbox"&gt; sInbox &lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
</code></pre>
