views:

654

answers:

2

how can i make cool checkbox and selectbox elements in html form , that work in IE too ?

+2  A: 

What is usually done is to create a fake element that (via javascript) sets the value to a hidden element (hidden via css). Then this fake element can have any visual style applied to it.

Ólafur Waage
thanks its help i found something to select box :http://www.brainfault.com/2008/02/10/new-release-of-jquery-selectbox-replacement/
Haim Evgi
FWIW, this is a horrible, horrible idea to begin with. First of all, there are reasons as to why you can't skin checkboxes and other form elements properly. Secondly, anything that claims to skin your checkboxes is nothing but an awful hack that should be avoided at all costs.
Deniz Dogan
i found a jquery plugin http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/
Haim Evgi
That's pretty neat :) But you're just abstracting the "hidden" elements away with this plugin :) Check the generated source code (via web developer in firefox) and see.
Ólafur Waage
A: 

Checkboxes and radiobuttons can't be styled (consistently) every browser displays them in their own way, and some browsers ignore the styles set to them completely.

What Ólafur Waage said (creating a fake element via javascript) is the most common way of doing it as far as i know.