logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Charlotte
    • Posted on Tue 16 Sep 2003

    Just wondering, since I've the following below:

    function checkOriginality() { var f = document.forms[0];

    if (f.OIIMarks.value != 0) { alert("Part II will be set to 0") f.OIIMarks.value = 0; return false; }

    if (f.OIIIMarks.value != 0) { alert("Part III will be set to 0") f.OIIIMarks.value = 0; return false; } }

    Can I shorten it by using a conditional statement?

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: