Skip to content
Loading
Texbox is not center focus when its validated shifts?  
  •   
  • t;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";  
  •           }  
  •       });  
  •   });  
  •   
  •   
  •   
  • t;/script>  
  •  

    2 Replies

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