Skip to content
Loading
    
  •                                   
  •                               
  •                           
  •     
  • '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";    
  •           }    
  •       });    
  •   });    
  •      
  •     
  • If you need to display in differnet way then please put screen inwhich way you want to dispay. 
    +1
  • 0
    Jignesh the logic seem to work, but my concern is texbox layout its fading out, only label error message is on focus inside, but the widght and its height its fading out. How can i prevent this not to be seen by user?
    0