title: Validation on textbox using jquery for pan Number format
body: <p>I have to add Pan no in my website Application but i have to use jquery for validation so that first 5 no. should be alphabet then 4 no. should be numeric and the last Questions should be alphabet. </p>
  
  <pre><code>$('#txtPANNumber').keypress(function (event) { 
  var key = event.which; 
  var esc = (key == 127 || key == 8 || key == 0 || key == 46); 
  //alert(key); 
  //var nor = $("#txtPANNumber").mask("aaaaa9999a"); 
  var regExp = /[a-zA-z]{5}\d{4}[a-zA-Z]{1}/; 
  var txtpan = $(this).val(); 
  if (txtpan.length &lt; 10 ) { 
   if( txtpan.match( regExp) ){ 
    //event.preventDefault(); 
   } 
  } else { event.preventDefault(); } });
  </code></pre>
  
  <p>Please provide some solutions</p>