开发者

jQuery Recommended way to Style Radio btns & Checkboxes

Any plugin suggestions that work well? Please only from personal experience. I开发者_开发技巧 can google :)

Thanks


Yes, my plugin suggestion is don't use a plugin - use labels instead. jQueryUI Button is a nice way to fancify checkboxes and radios, if that is what you mean.


This one looks good http://www.openpave.org/~reg/jqueryui-checkbox.html

I've been using this for a while and it is pretty good http://widowmaker.kiev.ua/checkbox/


I've used Uniform and loved it. It is fast and very complete and comes with a few very well designed themes (but you can always roll your own if you don't find one you like).


We're using the controls in the jqueryui package. The nice thing about them is that they sit on top of the HTML quite easily so we can just write standard HTML and they work with it. I'm actually really surprised how easy they are to use and how general they are (button can be applied to almost any control for example).

The controls also have built in ARIA support so it's easy to support screen readers and the like.

Another nice addition is that you can build your own theme on the jqueryui website. You pick the colours, etc and it creates the downloadable package.

Lastly, most of the big name jquery plugins are supporting the standard jqueryui CSS classes which makes dropping them into an existing jqueryui project very simple. They're automatically styled.


Here's a small script I made for styling checkboxes. Tested in chrome, safari, firefox. It uses jQuery but no other plugins or images. It's very lightweight.

Here's the code http://jsfiddle.net/mulhoon/8m6xn/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜