title: How to add a certain value to anchor tag?
body: <p>I have the following code</p>
  
  <pre><code>&lt;a href="" (set value 1)&gt;Inside Link which sets a value&lt;/a&gt;
  
  &lt;script&gt;
  $(a).click(function() {
      i=value of a tag;
      $('#square').animate({'left': i * 360});
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>And i want to add a value attribute to an anchor tag. How to do it?</p>