OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

I have the following that works perfectly with numbers but I don't know how to get it to work with letters too

  • Thread starter Thread starter Convex 005
  • Start date Start date
C

Convex 005

Guest
jQuery('input[name="_tipo"], label input[name="_tipo"]').on('change', function() { var mask = (jQuery(this).val() == 'CPF') ? '000.000.000-00' : '00.000.000/0000-00'; jQuery('input[name="user_login"]').mask(mask);

I'm not sure where to look for a reference guide for this kind of thing. Any help would be much appreciated!

<p><code>jQuery('input[name="_tipo"], label input[name="_tipo"]').on('change', function() { var mask = (jQuery(this).val() == 'CPF') ? '000.000.000-00' : '00.000.000/0000-00'; jQuery('input[name="user_login"]').mask(mask);</code></p>
<p>I'm not sure where to look for a reference guide for this kind of thing. Any help would be much appreciated!</p>
 
Top