<script>
jQuery(document).ready(function(){
  jQuery('.pincode').each( function () {
    jQuery(this).val(jQuery(this).attr('value'));
    jQuery(this).css({color:'grey'});
     });

 jQuery('.pincode').focus(function(){
    if ( jQuery(this).val() == jQuery(this).attr('value') ){
     jQuery(this).val('');
     jQuery(this).css({color:'black'});
    }
    });
 jQuery('.pincode').blur(function(){
    if ( jQuery(this).val() == '' ){
     jQuery(this).val(jQuery(this).attr('value'));
     jQuery(this).css({color:'grey'});
    }
    });
});
</script>


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *