This version is old school.
Please find jQuery plugins on npm.
ordinalinator
jQuery plugin to add ordinal suffixes to class .ordinal in an element
Versions
Version
Date
1.0.2
May 14, 2013