i want to add 500 using onclick function in span 1000 means onclick at check box sapn value will be 1500
JS
function add() {
if (document.Form1.checkbox1.checked == true) {
// what will code here to sum 500 in to 1000
}
}
HTML
<form name="Form1" style="color: green ; font-size: 150%" action="#">
<input type="checkbox" name="checkbox1" onclick="add()" />500
<br />
<span>1000</span>
</form>