Dear all:
We've got a page we'd like to run on both IE and Mozzila, it's three DIV elements with checkboxes and when the boxes are checked the background color will change individually.
The following code is one of the DIV elements, however it only works on IE but not Mozilla.... is there any cross-browser things that we need to know? or where can we find out more ....
Any help is appreciated!
<div style="background:yellow;color:black;">
<input type="checkbox" name="food1" value=http://www.webdeveloper.com/forum/archive/index.php/"apple" onClick="Javascript:
if (this.checked)
this.parentElement.style.background='#99CCFF';
else
this.parentElement.style.background='yellow';
return true;">
apple</div>
Bo & Vic
We've got a page we'd like to run on both IE and Mozzila, it's three DIV elements with checkboxes and when the boxes are checked the background color will change individually.
The following code is one of the DIV elements, however it only works on IE but not Mozilla.... is there any cross-browser things that we need to know? or where can we find out more ....
Any help is appreciated!
<div style="background:yellow;color:black;">
<input type="checkbox" name="food1" value=http://www.webdeveloper.com/forum/archive/index.php/"apple" onClick="Javascript:
if (this.checked)
this.parentElement.style.background='#99CCFF';
else
this.parentElement.style.background='yellow';
return true;">
apple</div>
Bo & Vic