A simple, lightweight jQuery plugin for creating awesome Capital Letters
Include script after the jQuery library (unless you are packaging scripts somehow else):
Do not include the script directly from GitHub (http://raw.github.com/...). The file is being served as text/plain and as such being blocked in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.
// Apply the pluging to any paragraph in the page $('p').CapitalLetter(); // Apply it to all <p> inside <article> $('article p').CapitalLetter();
You can pass in any CSS you like to be applied to the capital letter