title: How to add/update an attribute to an HTML element using JavaScript?
body: <p>I'm trying to find a way that will add / update attribute using JavaScript.  I know I can do it with <code>setAttribute()</code> function but that doesn't work in IE.</p>