jQuery Capitalize – A Plugin that provides capitalization for your input fields (or any other element) for proper names, places

 

Using the plugin

Include jQuery and the plugin on a page. Apply the plugin to 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

BeforeAfter
JOÃO A.DA SILVAJoão A. da Silva
ruA DA praça xvRua da Praça XV
jonnas foniniJonnas Fonini
LOUIS VAN GAALLouis van Gaal
áREa de teRraÁrea de Terra

 


Website: http://fonini.github.io/jquery-capitalize/

Source Code: https://github.com/fonini/jquery-capitalize/releases


Thanks for reading,
Nabeel Shahid.