Given a star widget embedded in a form write the code to select the stars and submit the correct value through a normal form action. Make reusable for multiple star widgets.
Anonymous
Since I don't have the actual interview code an approximation of my solution was: HTML: <div> <div></div> <div></div> <div></div> </div> CSS: .star { height: 20px; width: 20px; background: #FFCC11; display: inline-block; } input:checked ~ label .star { background: #ccc; } input[type="radio"] { display: none; }
Check out your Company Bowl for anonymous work chats.