Hello:
I would like to get confirmation from user, if a particular checkbox on form is not checked, whether they want to submit the form without checking this box.
I have written the following, but need help with it --missing something.
<script type="text/javascript">
function taxable(){
if (document.processEstimate.tax.checked == 0)
{
if (confirm('You have not checked the taxes. Are you sure you want to continue?')) document.processEstimate.submit(); else return false;
}
else
document.processEstimate.submit();
};
</SCRIPT>
and then
<form name="processEstimate" .... .... onsubmit="return taxable();">
Not working so far. Is this correct or is there a better way?
Thank you!
Mossa