Skip to content

The jQuery Capitalize Plugin provides capitalization for your input fields (or any other element) for proper names, places etc.

License

Notifications You must be signed in to change notification settings

fonini/jquery-capitalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Capitalize

The jQuery Capitalize Plugin provides capitalization for your inputs fields (or any other element) for proper names, places etc.

Getting Started

How to get the plugin:

Install it with npm

npm install jquery-capitalize

Install it with Bower

bower install jquery-capitalize

Download the latest release

Download the latest release

Download the latest changes

  1. Fork or clone this repo
  2. Run npm install to install the build tools
  3. Run gulp
  4. The generated file will be at the dist folder

Using the plugin

Include jQuery and the plugin on a page. Apply the plugin on the elements you want.

<input type="text" id="name" />

<script src="jquery.js"></script>
<script src="jquery.capitalize.min.js"></script>
<script>
$(document).ready(function(){
	$('#name').capitalize();
});
</script>

Output sample

Before After
JOÃO A.DA SILVA João A. da Silva
ruA DA praça xv Rua da Praça XV
jonnas fonini Jonnas Fonini
LOUIS VAN GAAL Louis van Gaal
áREa de teRra Área de Terra

Thanks

Thanks to Fausto Gonçalves Cintra for the original PHP code.

License

Copyright (c) 2017 Jonnas Fonini. Licensed under the MIT license.

About

The jQuery Capitalize Plugin provides capitalization for your input fields (or any other element) for proper names, places etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published