Monday, May 17, 2010

Renaming id name in javascript

old is old id where we are going to rename it to new

function renameID()
{
document.getElementById("old").id = "new";
}

onclick="renameID()"

No comments:

Post a Comment