There are three way tochange the URL for a Hyperlink using jQuery.1- $("a").attr("href", "http://www.phpinterviewquestion.com/");2- $("a[href='http://www.phpinterviewquestion.com/']") .attr('href', 'http://phpinterviewquestion.com/');3- $("a[href^='http://phpinterviewquestion.com']").each(function(){this.href = this.href.replace(/^http:\/\/beta\.phpinterviewquestion\.com/, "http://phpinterviewquestion.com"); });

Comments