javascript change name attribute of input 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');
}