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
2009-04-20 11:15:09
thanks its help i found something to select box :http://www.brainfault.com/2008/02/10/new-release-of-jquery-selectbox-replacement/
Haim Evgi
2009-04-20 11:28:48
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
2009-04-20 12:14:59
i found a jquery plugin http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/
Haim Evgi
2009-05-04 13:50:43
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
2009-05-04 14:41:00
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.