Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, December 19, 2012

Codecademy Sample Solution: Codeyear On The Radio



// sample solution to script.js

function processForm() {
   
    var temperature = Number(document.tempForm.temp.value);
    var tempType;

    for (var i=0; i < document.tempForm.choice.length; i++) {
        if (document.tempForm.choice[i].checked) {
            tempType = document.tempForm.choice[i].value;
        }
    }
    alert(tempType);
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts