0
How to change the text(dynamically) ?
I want the month to change from November to December and back to November everytime I press the checkbox. How can this be achieved? https://code.sololearn.com/WzQrEzVBvhwy/?ref=app (Ps - I am new to web dev)
2 Answers
+ 2
ca.addEventListener('change', onChange);
function onChange(e) {
if(this.checked ) {
// checked
} else {
// not checked
}
}
0
Alex ,Thnx it is working now