English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How to I put this:

function displayAll()
{
for (var i=0; i {
document.write(stateName[i] + " entered the Union in " + stateYear[i] + ".
\n");
}
}

into an ordered list?

Thanks!

2007-10-02 20:04:04 · 2 answers · asked by manchildstudio 2 in Computers & Internet Programming & Design

2 answers

document.write("

  • " + stateName[i] + " entered the Union in " + stateYear[i] + ".
  • ");

    in the html:

    2007-10-02 20:15:45 · answer #1 · answered by Anonymous · 1 0

    function displayAll() {
    var tempState = stateName;
    tempState.sort();
    for (etc....

    That will do it.

    2007-10-03 04:37:56 · answer #2 · answered by AnalProgrammer 7 · 0 0

    fedest.com, questions and answers