Loading ...
Sorry, an error occurred while loading the content.

Kind of Validator

Expand Messages
  • erinellabobella
    Hello, first post... This script is not working... any suggestions? function match() { var typefield =
    Message 1 of 1 , Mar 4, 2008
    • 0 Attachment
      Hello, first post...

      This script is not working... any suggestions?

      <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 here...
      <form id="JobTicket" action="Entering/enteringjob.php" method="post"
      name="JobTicket" onsubmit="return job.exec(); return match()">

      No troubles with the other referenced job.exec

      Please if you can offer help - I would love and need it!

      Thanks!
      Erin
    Your message has been successfully submitted and would be delivered to recipients shortly.