Skip to content
Loading
Borders of textbox are fading away when validated?  
  •   
  • script type='text/javascript'>  
  • $(function () {  
  •     //When the blur event occurs from your Textbox (you lose focus)  
  •     $('#inputEmail').blur(function () {  
  •         var email = document.getElementById("inputEmail").value;  
  •         var expr = /^([\w-\.]+)@@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;  
  •         if (!expr.test(email)) {  
  •             document.getElementById("labelMessage").style.display = "inline";  
  •         }  
  •         else {  
  •             document.getElementById("labelMessage").style.display = "none";  
  •         }  
  •     });  
  •   
  •   
  •   
  • });  
  •   
  •   
  •   
  • /script>  
  • 4 Replies

    Know the answer? Post it — somebody with the same question will find it here.