title: textbox validation on button click
body: <p>I am working on simple website making a textbox and a button. while clicking on button error should be given that "textbox value can't be empty". i tried from many sites but my issue is not yet resolved. one important thing to mention this button and textbox is not enclosed in a form.</p>
  
  <pre><code>&lt;input id="AccountText" type="text" name="AccountText" 
         class="form-control" placeholder="Name" required=''/&gt;
  
  &lt;input id="AddAccount" type="button" class="btn btn-primary" value="Save"  /&gt;
  </code></pre>
  
  <p>i have already tried controltovalidation but it is also not working for me.</p>