Monday, 22 April 2019

change the href for a hyperlink using jQuery???


change the href for a hyperlink using jQuery???


$("a").attr("href", "http://www.google.com/")


modify the href of all hyperlinks to point to Google. For instance, if you have a mix of link source (hyperlink) and link target (a.k.a. "anchor") anchor tags:

The yahoo

No comments:

Post a Comment

remove a property from a JavaScript object?

remove a property from a JavaScript object? delete myObject.regex; // or, delete myObject['regex']; // or, var prop = ...