Hi, I'm a beginner to Javascript and still learning.. Pls share the correct step how to show result output of Question1+Question2 using Javascript?
For example if user clicked "2" on Question1 and "3" on Question2, popup windows will show the result 5.
TESTING QUESTIONAIRE
function calc1(a,b)
{
var a=document.frm.no1.value;
var b=document.frm.no2.value;
var total=a+b;
alert(total);
alert("Hello world!");
}
QUESTION1 : | 1 | 2 |
QUESTION2 : | 2 | 3 |