JQUERY TO LOWERCASE / UPPERCASE


/ Published in: jQuery
Save to your folder(s)

Quick and dirty lowercase / uppercase conversion.


Copy this code and paste it in your HTML
  1. //Lowercase
  2. $('input#email').val($(this).val().toLowerCase());
  3.  
  4. //Uppercase
  5. $('input#email').val($(this).val().toUpperCase());

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.