While toying around with the idea of building a webapp for the iPhone I came across the need to build the equivalent of a checkbox. The problem is that checkboxes are a bit too small to be used accurately with fingertips and Apple has already come up with the perfect solution, the cool sliding ON/OFF switches that you find on the iPhone native apps.
I'm pretty happy with the results, I even managed to animate the switch. Until iPhone 2.0 gets released in June (with safari 3.1 for iPhone) you will only be able to see the animation on the desktop version of Safari 3.1 (unless, of course, you are already running the iPhone 2.0 beta)
The switch could still use better colors and gradients, but it will do for now.
I'd love your feedback if you come up with a better idea.