Hi,
I am hoping someone on this forum would be able to assist me. I am trying to make a DIV visible after a user clicks a form submit button that posts to the same page.
Thanks very much!
Here is the code that I have came up with so far and it does not work.
<script>
void processForm()
{
document.getElementById(“loadingImg”).style.visibility = “visible”;
// document.getElementById(“form1”).submit();
}
</script>
Here is the line of code with the hidden DIV.
<DIV style=“visibility:hidden;” />
Form Submitted!
</DIV>
Than here is the sample form.
<form action=“” method=“post” enctype=“multipart/form-data” name=“form1” id=“form1” >
<cfinput type=“submit” value=“Upload” onClick=“processForm();” / >
</form>