title: User data validation
body: <p>I am using jQuery AJAX and ASP.Net web methods. I need to check user data entered in to HTML controls, I know that there are a lot of jQuery plugins but I used them one by one, but no luck, the issue is they use <code>&lt;form id="" action=""&gt;&lt;/form&gt;</code> tag while I do not. Also I do not submit my form as it is a jQuery AJAX application. I want some fields to have only floating points and some not null. Can anyone help?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;table width="100%"&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;asp:Label ID="lblcontry" runat="server" Text="Select Country"&gt;   &lt;/asp:Label&gt;&lt;/td&gt;
          &lt;td&gt;
              &lt;select id="cmbCountry"&gt;
                  &lt;option value="0"&gt;Select Country&lt;/option&gt;
              &lt;/select&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;asp:Label ID="lblCname" runat="server" Text="City Name"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
          &lt;td&gt;&lt;input type="text" id="txtCityName" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;asp:Label ID="lblDialCode" runat="server" Text="Dial Code"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
          &lt;td&gt;&lt;input type="text" id="txtDialCode" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;asp:Label ID="lblKeywords" runat="server" Text="KeyWords"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
          &lt;td&gt;&lt;textarea id="txtKeywords" cols="20" rows="2"&gt;&lt;/textarea&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td&gt;
              &lt;input type="button" id="btnsave" value="Save" /&gt;
              &lt;input type="button" id="btnCancel" value="Cancel" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  $(document).ready(function () {
      $("#btnsave").click(function () {
          //here i want to check fields first and then save data.
          SaveData();
      });
  }
  </code></pre>
  
  <p>I have imported all files and css.</p>