Changing a displayed <div> with another <div> when a link was clicked using php <p>I would like to ask some help on this thing. I created a site that has a lot of div and what I want is that when a link is clicked only one div will be displayed without reloading the whole page.</p> <p>Sample code:</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href=""&gt;Div 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Div 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Div 3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="content1"&gt; &lt;p&gt;This is content 1&lt;/p&gt; &lt;/div&gt; &lt;div id="content2"&gt; &lt;p&gt;This is content 2&lt;/p&gt; &lt;/div&gt; &lt;div id="content3"&gt; &lt;p&gt;This is content 13&lt;/p&gt; &lt;/div&gt; </code></pre> <p>Is it possible if I'll just use php? And please help me on how I will do it.</p>