Solved

How to make this voting system

Posted on 2013-06-15
4
183 Views
Last Modified: 2013-06-18
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
Comment
Question by:team2005
4 Comments
 
LVL 6

Expert Comment

by:limweizhong
ID: 39250122
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
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39250158
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
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39251138
0
 
LVL 2

Author Closing Comment

by:team2005
ID: 39255979
thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now