How to add another style property to this onClick?
Posted
by Kyle Sevenoaks
on Stack Overflow
See other posts from Stack Overflow
or by Kyle Sevenoaks
Published on 2010-04-20T09:41:42Z
Indexed on
2010/04/20
9:43 UTC
Read the original article
Hit count: 191
Hi, I made this onlick property for my checkbox, my js-fu is like, not there, how can I simply add a border color property as well as bg color?
<div id="akseptwrap">
<span style="left:-20px; position:relative; top:3px;"><img src="http://euroworker.no/public/upload/1_2_arrow.gif"></span>
<span id="salgsaksept">
<input tabindex=12 value="1" type="checkbox" name="salgsvilkar" ID="Checkbox2" onclick="document.getElementById('salgsaksept').style.backgroundColor='#E5F7C7';" /> Salgs- og leveringsvilkår er lest og akseptert
</span>
</div>
Thanks.
© Stack Overflow or respective owner