how to change name with DOM element code example
Example: change name of html element javascript
function weekclick(id) {
document.getElementById(id).setAttribute('name', 'w1-1');
}
function weekclick(id) {
document.getElementById(id).setAttribute('name', 'w1-1');
}