Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Date mask with jQuery [closed]

Tags:

jquery

Looking for a mask where I can enter dd/mm/yyyy (with a limit of 31 for dd, 12 for mm) I tried several but possible to enter 24/24/2024

Thanks,

like image 447
Kris-I Avatar asked May 16 '11 10:05

Kris-I


2 Answers

I use masked-input-plugin and handle validation separately with the rest of the form.

like image 109
piddl0r Avatar answered Nov 09 '22 07:11

piddl0r


Try the jQuery Date Entry

A jQuery plugin that sets an input field up to accept a date value using a spinner.

enter image description here

Description from jQuery Plugin page:

  • Can be driven via the keyboard or with the mouse.
  • Accepts direct date entry via the keyboard.
  • Allow various date formats including day and/or month names.
  • Can restrict to a minimum and/or maximum date.
  • Localisations available.
like image 4
dertkw Avatar answered Nov 09 '22 06:11

dertkw