A jQuery plugin to enforce uppercase, lowercase, or Capitalized inputs & textareas
JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.editorconfig
.gitignore
CHANGELOG
LICENSE
README.md
bower.json
gulpfile.js
index.html
package.json

README.md

input-case-enforcer

Buy Me a Coffee

input-case-enforcer is a jQuery plugin to enforce uppercase, lowercase, or Capitalized inputs & textareas

Install

Yarn, NPM, or Bower

yarn add chosen-material-theme

npm install chosen-material-theme

bower install chosen-material-theme

Rails Install

# Gemfile
source 'https://rails-assets.org' do
  gem 'rails-assets-input-case-enforcer'
end


# app/assets/javascripts/application.js
/*
 *= require jquery
 *= require input-case-enforcer
*/

Usage

$('input').caseEnforcer('uppercase');

$('input').caseEnforcer('lowercase');

// capitalize the first letter of every word
$('textarea').caseEnforcer('capitalize');

// Remove case enforcer from an input
$('input').caseEnforcer('destroy');

Credits

Created by Weston Ganger - @westonganger