Javascript questionnaire - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Javascript questionnaire

C-userC-user Posts: 5Member
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 :12
QUESTION2 :23





Comments

Sign In or Register to comment.