am wondering if its possible to make a div that behave exactly like a radio button? I'm trying to achieve this without the use of jquery which alot of people are suggesting, i checked the web and found some of it.
my previous way of doing this is by using javascript, this works for a small number
function Switcher(a,b,c,d,e){
document.getElementById('button1').style.background=a;
document.getElementById('button2').style.background=b;
document.getElementById('button3').style.background=c;
document.getElementById('button4').style.background=d;
document.getElementById('button5').style.background=e;
}
with an onclick event
onClick=Switcher(#c5e043,#241009,#241009,#241009,#241009)
then each button clicked is switched, i can add on a check radio button function but i notice that i might need to go up to 20, which make the list really long.
am wondering if anyone out there have a simpler solution to this problem? Basically i need a div that behave like a radio button that changes bgcolor or smthg upon selected (the radio as well)