dear sir..my friend give me one code how to calculate without pressing any button... but i didn't know how to insert function to make it work... very very newbie in calculation using javascript..ple ase someonehelp me please..
Code:
var total = (document.getElementById("cam").value + document.getElementById("final_exam").value) / 2; document.getElementById("total").value = total;
Comment