Hi Team,
I found some code on this forum that disables the submit button if fields are empty, as I only wanted this to apply to one particular field i hhace tried to edit the code however it does not seem to work. I have posted the code below
on the submit button i have the following
and on the input field i have
Could some one tell me what is wrong please
Regards
Paul
I found some code on this forum that disables the submit button if fields are empty, as I only wanted this to apply to one particular field i hhace tried to edit the code however it does not seem to work. I have posted the code below
Code:
<script language = "javascript">
function maybeDisableButton()
{
var Pall = document.getElementById("txtPall").value; // Check for value in Pallet Field
var disableButton = false;
if (Pall == "") {
disableButton = true;
}//end if
else
{
disableButton = false;
}//end else
document.frmEnterRecord.Submit.disabled = disableButton;
}//end maybeDisableButton()
</script>
on the submit button i have the following
Code:
<input name="Submit" type="Submit" id="Submit" value="Submit Check" disabled/>
and on the input field i have
Code:
onKeyUp="maybeDisableButton()"
Could some one tell me what is wrong please
Regards
Paul