I wanted to have some radio buttons that disabled when the mouse went over and enabled again when it went out (just for fun).
<form>
<input type="radio" name="rigged" onMouseOver="this.disabled=true" onMouseOut="this.disabled=false">
</form>
When the mouse goes on it it does what it should be when it goes back off the button wont re-enable. Also, how do I make it default to enable so that when you refresh the page it doesn't stay disabled.
Thanks in advance.
Best Solution
You could achieve the same effect by wrapping your radio buttons in a div tag and setting the onmouseover and onmouseout events.
The above solution only works in IE, for a solution that works in FireFox do the following.
*This javaScript function was borrowed from here: Enable or disable DIV tag and its inner controls using Javascript