Team:Groningen/create desc
From 2010.igem.org
(Difference between revisions)
Line 33: | Line 33: | ||
function post() { | function post() { | ||
var txt = ""; | var txt = ""; | ||
+ | fouten = ""; | ||
var ok = false; | var ok = false; | ||
if (document.inv.desc.value != "") { ok = true; } else { fouten += "Description is not provided"; } | if (document.inv.desc.value != "") { ok = true; } else { fouten += "Description is not provided"; } | ||
Line 44: | Line 45: | ||
$("#ans").show(); | $("#ans").show(); | ||
$("#formpje").hide(); | $("#formpje").hide(); | ||
- | + | document.getElementById("fouten").innerHTML = fouten; | |
document.getElementById("ans").innerHTML = txt; | document.getElementById("ans").innerHTML = txt; | ||
} else { | } else { | ||
- | + | ||
} | } | ||
Revision as of 22:53, 26 October 2010