I have a submit button that when clicked ask you wether you really want to do it….OK/CANCEL…
<script LANGUAGE=”JavaScript”>
<!–
function confirmSubmit()
{
var agree=confirm(“Are you sure”);
if (agree)
return true ;
else
return false ;
}
// –>
</script>
But I also want to add this ..
function submitCheck(){
document.Zip.B1.value = ‘Sending Email….Please Wait’;
document.Zip.B1.disabled = true;
}
So if my submit button is:
<form name=”Zip”>
<input type=”submit” value=”Submit Form” onClick=”return confirmSubmit()” name=”B1″>
</form>
SO my question is…how do I join these to codes so if you click OK to submit it will change the value and disable B1?
Thanks Alot!