I want change the color on the font to red for the text within the div element.
I have the following code.
[HTML]
<style type="text/css">
.style2 {color: #000000}
</style>
[/HTML]
[CODE=javascript]
<script language="JavaS cript" type="text/JavaScript">
function radio1(){
document.form1. test12.style.co lor="#FF0000";}
</script>[/CODE]
[HTML]
<form name="form1" method="post" action="submit. php">
<p class="style2"> <input name="radType" type="radio" onClick="radio1 ()" value="new">Cha nge to red.</p>
<div id="test12"><p class="style2"> You agree to the following by checking this box and clicking submit.</p></div>
</form>[/HTML]
I think that is the code, I cut out the extra stuff...My page works fine except changing that font color. please ignore any mistakes i might have made in copying.
I hope this makes sense.
I have the following code.
[HTML]
<style type="text/css">
.style2 {color: #000000}
</style>
[/HTML]
[CODE=javascript]
<script language="JavaS cript" type="text/JavaScript">
function radio1(){
document.form1. test12.style.co lor="#FF0000";}
</script>[/CODE]
[HTML]
<form name="form1" method="post" action="submit. php">
<p class="style2"> <input name="radType" type="radio" onClick="radio1 ()" value="new">Cha nge to red.</p>
<div id="test12"><p class="style2"> You agree to the following by checking this box and clicking submit.</p></div>
</form>[/HTML]
I think that is the code, I cut out the extra stuff...My page works fine except changing that font color. please ignore any mistakes i might have made in copying.
I hope this makes sense.
Comment