<!DOCTYPE html>
<html>
<body>
<form action="form_action.asp" method="get">
<span style='background-color: red;'>
<input style="FILTER: progid:DXImageTransform.Microsoft.Alpha( style=0,opacity=50);" type="checkbox" name="vehicle" value="Bike" /></span>I have a bike<br />
<span style='background-color: red;'>
<input style="-moz-opacity:0.5" type="checkbox" name="vehicle" value="Car" /></span> I have a car <br />
<input type="submit" value="Submit" />
</form>
<p>Click on the submit button, and the input will be sent to a page on the server called "form_action.asp".</p>
</body>
</html>
I found pieces of examples online and pieced this together the top input checkbox should work for ie and the bottom for FF and chrome. Neither on works well. IE looks sloppy and FF and chrome doesn't seem to work at all. I am trying to figure this out for a list of checkboxes, some of which are disabled based on previous choices. I have it working for most browsers but some of the browsers don't grey the boxes out.
So, I need to figure out how to grey out the boxes using javascript. This doesn't seem to work and document.getelementbyid(elementID).style.background = "#dbdbdb"; just outlines the box.
Any help is greatly appreciated
-vendor-appearanceuseful. Like-webkit-appearance: checkbox.)