Hello, first post here…
This script isn’t working how I want it to – please if you can offer suggestions / help – it would be greatly appreciated!
[CODE]<script type=”text/javascript”>
function match() {
var typefield = document.getElementById(type);
var catidfield = document.getElementById(categoryid);
if((typefield.value == ‘Print’) && (catidfield.value == ’30’)) {
alert(“You must select a print category”);
return false;
}
if((typefield.value != ‘Print’) && (catidfield.value != ’30’)){
alert(“You must select ‘No Category’ for this Type”);
return false;
}
return true;
}
</script>
Being called from this form…
[CODE]<form id=”JobTicket” action=”Entering/enteringjob.php” method=”post” name=”JobTicket” onsubmit=”return job.exec(); return match()”>
No troubles with job.exec – only with match.
Thanks in advance ?