How to change element name on Page load with jquery?
Posted
by streetparade
on Stack Overflow
See other posts from Stack Overflow
or by streetparade
Published on 2010-04-14T16:29:08Z
Indexed on
2010/04/14
16:33 UTC
Read the original article
Hit count: 237
jQuery
Hy, i need to know how i can change the name of a element. I have the id of that element say it is "tester"
Ok the on page load problem could be solved this way.
$(document).ready(function() {
});
but how can i change the name of a element like this?
<div id="tester" name="fun">
</div>
what i want as result
<div id="tester" name="tester">
</div>
© Stack Overflow or respective owner