mudar href link por class name
by thvinic
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<a class='test' href="www.facebook.com">Hello</a>
JavaScript
$('a.test').attr('href', 'www.google.be');
by thvinic
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<a class='test' href="www.facebook.com">Hello</a>
$('a.test').attr('href', 'www.google.be');