A
Andrew Poulos
I have a form with a submit button and an onsubmit event.
fCheckform = function() {
var status = false;
//
// some checking here, if its ok then status get set to true
//
if (status) {
var el = document.forms["details"].elements["finish"];
el.style.visibility = "hidden";
}
return status;
}
<form name="details" method="post" action="test.php"
onsubmit="fCheckform()">
<input name="finish" type="submit" value="Finish">
What's happening is that the submit button flashes off and then back on
when 'status' is true. Is there a way to keep/make the submit hidden if
fCheckform returns true?
Andrew Poulos
fCheckform = function() {
var status = false;
//
// some checking here, if its ok then status get set to true
//
if (status) {
var el = document.forms["details"].elements["finish"];
el.style.visibility = "hidden";
}
return status;
}
<form name="details" method="post" action="test.php"
onsubmit="fCheckform()">
<input name="finish" type="submit" value="Finish">
What's happening is that the submit button flashes off and then back on
when 'status' is true. Is there a way to keep/make the submit hidden if
fCheckform returns true?
Andrew Poulos