r/learnjavascript • • Aug 08 '26

How to make numbers interactive?

I'm a beginner in coding, and I need to know how to create a vertical row of clickable numbers. I wish I could show a picture, but I'm just going to try to describe it. There's a website i'm making, and I wanted to add a 1-10 scale. I also want to make it interactive so the person can click on each number, and then text appears depending on what's clicked. Being a beginner, I don't know how to accomplish this. Help.

2 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/SympathyContent9041 Aug 08 '26

Thank youuuuu, This was the easiest explanation for me to understand

1

u/5eeso Aug 08 '26

No problem! Also, fyi- since there are numbers involved with your project, just know that you can have a number in the id name, it just can’t start with a number. Just a JavaScript rule.