title: How to clear/remove values from onblur event after the tab is changed
body: <p>My problem is that in my registration form when it has error message and the user tries to changed tab and back again to registration the error message are still there what should I do to be able to remove the error message when I changed the tabs and when I click again the registration link?</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-1.8.1.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(function() {           
              var tabContainers = $('section.tabs &gt; article');
              tabContainers.hide().filter('#login').show();
  
              $('.ultabs a').click(function () {
                  tabContainers.hide();
                  tabContainers.filter(this.hash).show();
                  $('.ultabs a').removeClass('selected');
                  $(this).addClass('selected');
                  return false;
              });
          });
          function check_email() {
              var email=$("#textEmail").val();
              $.ajax(
              {
                  type:"POST",
                  url:"register.php",
                  data: { 
                  'email': email
                  },
                  success:function(msg) {
                      $("#checkEmail").html(msg);
                  }
              });
              return false;
          }
          function check_password() {
              var pass=$("#textPassword").val();
              $.ajax(
              {
                  type:"POST",
                  url:"register.php",
                  data: { 
                  'pass': pass
                  },
                  success:function(msg) {
                      $("#checkPassword").html(msg);
                  }
              });
              return false;
          }
      &lt;/script&gt;
  
  &lt;nav id="siteNav"&gt;
      &lt;h1&gt;Navigation&lt;/h1&gt;
      &lt;ul class="ultabs"&gt;
          &lt;li&gt;&lt;a href="#login"&gt;Login&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#register"&gt;Register&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/nav&gt;
  &lt;section id="siteContent" class="tabs"&gt;
      &lt;h1&gt;Section&lt;/h1&gt;
      &lt;article id="login"&gt;
          &lt;h1&gt;Login&lt;/h1&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td class="message" colspan="2"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;E-mail:&lt;/td&gt;&lt;td&gt;&lt;input type="email"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td class="message" colspan="2"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Password:&lt;/td&gt;&lt;td&gt;&lt;input type="password"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td colspan="2"&gt;&lt;input type="button"&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/article&gt;
      &lt;article id="register"&gt;
          &lt;h1&gt;Register&lt;/h1&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td class="message" colspan="2"&gt;&lt;/td&gt;
              &lt;/tr&gt;   
              &lt;tr&gt;
                  &lt;td&gt;Name:&lt;/td&gt;&lt;td&gt;&lt;input type="text"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td id="checkEmail" class="message" colspan="2"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;E-mail:&lt;/td&gt;&lt;td&gt;&lt;input id="textEmail" type="email" onblur="return check_email()"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td id="checkPassword" class="message" colspan="2"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Password:&lt;/td&gt;&lt;td&gt;&lt;input id="textPassword" type="password" onblur="return check_password()"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td class="message" colspan="2"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Re-type:&lt;/td&gt;&lt;td&gt;&lt;input type="password"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td colspan="2"&gt;&lt;input type="button"&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/article&gt;
  &lt;/section&gt;
  </code></pre>