entitled
v1.0.0
Published
A package that adds a button to each input and textarea element on the page for capitalizing titles
Downloads
4
Readme
entitled
A package that adds a button to each input and textarea element on the page for capitalizing titles
How to Use
In your HTML, simply add the capitalize
attribute to each input
or textarea
that might contain titles.
Example:
<input type="text" name="title" capitalize>
In your JS, you can now require entitled
using RequireJS or something similar. Now simply call capitalize()
and all valid input fields will be appended with a button that says: Aa, which titlecases input.
Example:
var entitled = require("entitled");
entitled.capitalize();