soulcatcher: Funktion allen Button zuweisen.

Beitrag lesen

wie wärs damit:

function delayedSubmit(id, secs)
{
  var button = document.getElementById(id);
  if (secs > 0) {

// statt:
    button.disabled = true;

// dieseshier:
    document.getElementById('btnSubmit(1)').disabled = true;
    document.getElementById('btnSubmit(2)').disabled = true;

button.value =  "Download (" + secs+ ")";
    setTimeout("delayedSubmit('" + id + "', " + (secs - 1) + ")");
  } else {

// statt:
    button.disabled = false;

// dieseshier:
    document.getElementById('btnSubmit(1)').disabled = false;
    document.getElementById('btnSubmit(2)').disabled = false;

button.value =  "Download";
    button.form.submit();
  }
}