How to change href value using jQuery

Home / jQuery / How to change href value using jQuery

If you have a situation where you would like to change href atribute (URL, that is), but can’t access the code directly, you can definitely try using jQuery prop():

So all you need to do is target <a> element within container and this should do the trick.