This is demo of jQuery UI Daterange plugin
First click selects start of range and second — the end.
Also, plugin can automatically swap dates if needed.
Previously selected days can be highlighted via class .ui-datepicker-range