title: how to bind input type= 'email' in knockoutjs
body: <p>I am using KnockoutJS with MVC.</p>
  
  <p>I want to know whether the emailId is valid or invalid and based on it i have to enable/disable button and set error title for textbox.</p>
  
  <p>here is my .cshtml</p>
  
  <pre><code>&lt;div class="nmc-righttab" style="width:265px;"&gt;
      &lt;input class="nmc-text" type="email" maxlength="50" id="txtEmail" data-bind="value: emailAddress, valueUpdate: 'input'",css: { faultyBrush: (checkValidEmail() },attr: {title: InvalidEmailTitle } style="width:245px;" /&gt;
   &lt;/div&gt; 
  
   &lt;input type="submit" class="btn nmc-button" data-bind="click: searchUsers,enable: canSearchUsers,css: { 'btn-primary': (canSearchUsers() == true) }" id="searchUser" value="@Res.CommonStrings.Search" /&gt;
  </code></pre>
  
  <p>here is my JS Code:</p>
  
  <pre><code> this.emailAddress = ko.observable('');
   this.invalidEmailTitle = ko.observable('');
   this.canSearchUsers = ko.computed(function () {
       try {
           if (this.emailAddress().trim().length!==0)
               return true;
           else
                return false;
       } catch (error) {
           NMCApp.showNMCExceptionWindow('Jquery Error:' + error);
       }
  }, this);
  
  this.checkValidEmail(input) {
  
  }
  </code></pre>
  
  <p>Please let me know How to know the validity of the email type textbox and how can i change the title for the same in case of invalid in Knockout JS.</p>
  
  <p>how can I get the validity of textbox with input type "email"</p>