Basicly it's a survey with answers from 1 to 10. When someone clicks on a number I want the background of my label to change color. I've used radiobuttons because they can only choose 1 answer.
<label class="lfirst">
<input type="radio" name="answer1" value="1">
1
</label>
<label>
<input type="radio" name="answer1" value="2">
2
</label>
<style>
input[type="radio"]{
display: none;
}
.answers label {
display: inline-block;
font-weight: bold;
margin: 0 3px 0 0;
padding: 4px 12px;
cursor: pointer;
background: orange;
}
.answers label + input[type="radio"]:checked{
background: red;
}
</style>