title: how to change content without reloading the page?
body: <p>Ok, so lets say that I have navbar eg. </p>
  
  <p><code>&lt;ul&gt;
  &lt;li class="selected"&gt;home&lt;/li&gt;
  &lt;li&gt;about me&lt;/li&gt;
  &lt;li&gt;contact&lt;/li&gt;
  &lt;ul&gt;</code></p>
  
  <p>and I have a content on a page that I want to change depending on which <code>&lt;li&gt;</code> is selected without reloading the whole page. It seems a bit pointless to reload the whole page just to update 2 divs. </p>
  
  <p>eg. when home is selected I want to load home.php included in <code>&lt;div class='content'&gt;</code> + change class of <code>&lt;li&gt; home&lt;/li&gt;</code> to selected etc.</p>
  
  <p>should I use AJAX for this? or should I use $_GET -> altering the URL?</p>
  
  <p>I am a beginner -> sorry for basic questions.</p>
  
  <p>Thx for any kind of help! </p>