Topic: Change attribute of element with Prototype...?
I'm a Protoype/Scriptaculous newbie, but am very good with jQuery. I need to change an attribute of an anchor tag.
In jQuery I could say:
$('#theLink').attr('href','the new value');
I've scoured the Prototype API and the rest of the Web, but I can't find a single method (that works) to change the attribute of an element. I found one example:
But, FireBug tells me that writeAttribute is not a function. Does anyone have any idea how to change an attribute?