how to change element name in javascript 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');
}