How to change the text(dynamically) ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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)

8th Jul 2022, 6:41 PM
Akash
Akash - avatar
2 Answers
+ 2
ca.addEventListener('change', onChange); function onChange(e) { if(this.checked ) { // checked } else { // not checked } }
8th Jul 2022, 7:39 PM
Alex
Alex - avatar
0
Alex ,Thnx it is working now
9th Jul 2022, 1:36 AM
Akash
Akash - avatar