Showing posts with label checkbox. Show all posts
Showing posts with label checkbox. Show all posts

Tuesday, November 19, 2013

jQuery UI: Checkbox Widget

The jQuery UI button widget operates on links and buttons for the most part. It can also operate on checkbox input elements. What's different about these button instances is that they toggle their state, and under the hood, toggle the state of the checkbox input element. This is ideal in that you get your themed button, and your code can still interact directly with the checkbox. However, the issue I've run into with the default toggle button is that it doesn't look like a checkbox. It would be nice if we could still use a themed widget that interacts with the underlying checkbox element, and yet has a more traditional checkbox look and feel.