title: How to check table data and input data are equal or not?
body: <p>I want to check the input value to text box is created or not in the database after pressing New Button (it will go to <code>create()</code> function).</p>
  
  <p>Let's say, the input value is <code>90112</code>, if it is created, I want to show the message <code>item no: is already existed.</code>. </p>
  
  <pre><code>function create()
  {
      if ((document.form1.itemcode.value.length == 0 )  || 
          (document.form1.itemcode.value.length &lt;= 5 )
      {
          showMessage("Enter the Fabric Item No ");
          document.form1.itemcode.focus();
          return false;
      }
  </code></pre>
  
  <p>I don't know how to check the table data and input data are equal or not.</p>