title: How to pass the href variable to the switch case?
body: <p>I have four links  which are redirected on the same page only there variables are different for. So:</p>
  
  <pre><code>&lt;a href="?type=square"&gt;Square&lt;/a&gt;
  &lt;a href="?type=circle"&gt;Circle&lt;/a&gt;
  &lt;a href="?type=triangle"&gt;Triangle&lt;/a&gt;
  &lt;a href="?type=rectangle"&gt;Rectangle&lt;/a&gt; 
  </code></pre>
  
  <p>I want to write a switch case to pass the href variables so, that if the type is square, it should alert me, that it is a square and similarly for the others using jquery.</p>