Assume I have an element like:
<div class="aaa" myattribute="foobar1111" .....>....</a>
The classname "aaa" is unique.
1.) How can I replace "foobar1111" completely (!) by "dummy2222" from javascript/jQuery?
2.) How can I replace ONLY "1111" inside the attribute by "2222" AND keep the remaining (possible unknown) text inside the attribute value whatever it is?
If it is more comfortable jQuery could be used.
Peter




Reply With Quote
