When the user input's form info, and the form is processed, if there is an error the page reloads displaying the error. However, the user must click the link again to see the form and correct their mistake. Is there a way to keep the div shown on reload?
Thanks!
Code: Select all
<script language="javascript">
function toggle() {
var ele = document.getElementById("show");
var text = document.getElementById("add");
if(ele.style.display == "block") {
ele.style.display = "none";
text.innerHTML = "show";
}
else {
ele.style.display = "block";
text.innerHTML = "Add Participant";
}
}
</script>