carhartl/jquery-cookie — pull request #70 by FagnerMartinsBrack (2012-05-17 15:22:41+00:00)
Title: autoCookie

Allows the user to specify data-cookie="ANY_NAME" or
class="data-cookie[ANY_NAME]" directly to any HTML input if u want to
persist its value.

class="data-cookie[ANY_NAME]" should be used only if you use some
specific framework that do not allow you to manually specify data-
attributes or if you want to style the inputs accordingly.

The cookie will be created as "auto-cookie-ANY_NAME" in the blur/change
event.

The value will be checked after you call $().autoCookie(), it should be
used inside the .ready() callback;