Skip to content
jheytompkins edited this page Oct 2, 2013 · 1 revision

Formats the time duration in the yy / mm format:

  • Limits to 4 numbers
  • Restricts input to numbers or slashes depending on the current state
  • Includes a / between the years and months.
$('input.yy_mm').formance('format_yy_mm');

Validates the duration:

  • Validates the duration can be parsed.
  • Validates that the duration is not short nor empty.
$('input.yy_mm').formance('validate_yy_mm');