changing domain value of href using jquery
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3459136/i-need-to-update-href-value-using-jquery">I need to update href value using jquery</a>  </p>
</blockquote>



<p>I wanted to change the domain value of href using jquery.
If in the href="http://www.google.com?gsec=account" if i find gsec=account then i wanted to change only the domain value of href should be "http://account.google.com?gsec=account. There are other query string parameters which are added to gsec=account dynamically. So in the href whatever the value is i need to change only the domain name.</p>
