[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

How to make this voting system

Hi!

I am making a vote system, and need some help.

I want 5 buttons, that change color when user select that button.

When user select a button, the value of that button must be stored in a variabel

How can i make this, like the picture show in HTML5
(nice effects is olso nice)
vote.png
0
team2005
Asked:
team2005
1 Solution
 
limweizhongCommented:
What do you know about HTML? You can make this using a table, a CSS style "float:left;", or absolute positioning. Using JavaScript, you then put an EventListener on the elements which will update the value based on which element you clicked.
0
 
COBOLdinosaurCommented:
Without a link to a page or at least the code you are already using, this is just going to go in circles with guesses and conflicting advice. If you don't have anything done yet, I would suggest to do a google search and find some code that is close to what you want and then if you need help adapting it, we are here.

Cd&
0
 
team2005Author Commented:
thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now