This version is old school.
Please find jQuery plugins on npm.
jQuery datetextentry
by Grant McLean
jQuery plugin for date entry and validation (not a date picker). Provides separate fields for day, month and year with immediate feedback for validation errors.