Viewing 1 replies (of 1 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi there,

    It is a little hard with HTML5 right now to have a birthday field, so I would suggest either using the complete date of birth (dd/mm/yy) in a date field or a regular text field to capture just dd/mm.

    Date of birth (dd/mm/yyyy)

    <input type="date" name="DOB" />

    Birthday (mm/dd)

    <input type="text" name="BIRTHDAY" placeholder="MM/DD" />

    You can add in some pattern validation so that the given date should match a birthday.

    <input type="text" name="BIRTHDAY" placeholder="MM/DD" pattern="(0[1-9]|1[012]).(0[1-9]|1[0-9]|2[0-9]|3[01])" />

    Hope that helps a little.

Viewing 1 replies (of 1 total)

The topic ‘Date Field Default’ is closed to new replies.