I need to update href value thorughout the page using jquery. Say href=\"http://www.google.com?gsec=account\" should be changed to href=\"http://account.google.com?gsec=acco
I think you left something out in your question. Nevertheless:
var link = $("a"); // Or some other selector to access the link link.attr("href", "http://account.google.com?gsec=account");