The following form contains some typical validators needed in a registration form.This j Query plugin has support for a lot more validation functions, you find them all in the menu to the right. Key Press Event Args' could be found (are you missing a using directive or an assembly reference?
Otherwise you can end up with values in the database that have no relation to reality.
In this example, the date fields will only accept input that matches the pattern 'dd/mm/yyyy' (this could just as easily be changed to 'yyyy-mm-dd' or 'mm/dd/yyyy').
The time field will allow input starting with 'hh:mm' following by an optional 'am' or 'pm'. The code behind the form is as follows: For each field in the form (first the dates, then the time field), a check is made as to whether the input is blank.
This functionality is provided by the fancybox, which fetches add_(which contains the form) and shows it within a pop-up.
In the form you can fill in the text of the note, your name and choose a color.