Possible Duplicate:
I need to update href value using jquery
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.