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
Use jQuery’s .attr() method. With one parameter, it returns the attribute value, with two parameters you set it.
.attr()
$("a#whatever").attr("href", "http://account.google.com?gsec=account");