title: JQuery Ajax adding hash in the url
body: <p>I have this code here that uses struts2-jquery plugin</p>
  
  <pre><code>&lt;h4&gt;Choose A task&lt;/h4&gt;
      &lt;ul&gt;
          &lt;s:url value="views/ajaxvalidation.jsp" var="ajaxvalidation" &gt;
              &lt;s:param name="menuId" value="1"/&gt;
          &lt;/s:url&gt;
          &lt;li&gt;&lt;sj:a targets="resultContent" href="%{ajaxvalidation}"&gt;Ajax Validation&lt;/sj:a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p>When I click its content the url is changing to something like this, nothing is changing in the url. it still remains the same, what I want is that when I click the link something like this would happen <code>www.myapp.com/#ajaxvalidation</code> . When I run the code anchor tag is translated to something like this</p>
  
  <pre><code>&lt;a id="anchor_1365013162" href="javascript:void(0)"&gt;Ajax Validation&lt;/a&gt;
  </code></pre>
  
  <p>With that given, how would I add a hash in the url? </p>