title: change the link color
body: <p>If i have 5 links.When first if i click a link it has to change to some other color and next if i click other link previous link color should go to default and this link color has to change</p>
  
  <p>CODE: </p>
  
  <pre><code>$("table#menu tr &gt; td a[href^='#']").click(function() { 
       $(this).toggleClass('class1'); / 
  }); 
  
  a.class1 { color:#000000; } 
  
  &lt;table id="menu"&gt; 
  &lt;tr&gt; 
     &lt;td&gt;&lt;a href="#" id="link1"&gt;qwerty&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; &lt;tr&gt; 
     &lt;td&gt;&lt;a href="#" id="link1"&gt;zyz&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;/table&gt;
  </code></pre>