Using jQuery and given this
<ul>
<li>
<a external="http://stackoverflow.com" href="home.htm">Link 1</a>
</li>
<li>
<a href="about.htm">Link 2</a>
</li>
<li>
<a external="http://google.com" href="contact.html">Link 3</a>
</li>
</ul
I want to grab the links with a attribute of "external". Use the value of the external attribute to update the href.
So link 1 and 3 should end up pointing to stackoverflow.com and google.com respectively.