change name of an element - js 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');
}