'Generate Field with Options based on input field date check

I really need some help as this is my first time trying jquery, other than the plug-in datepicker. I have this user input field which is a datepicker. I'd like to check that date input to see if it falls during the week or on the weekend (sat and sun). Then based on the check an input field 'Location' is generated with option(s).

If it doesn't fall on the weekend then 'Location' options are. 1. Airport Office 2. City Office. Else if it falls on the weekend the only option is 1. Airport Office.

I would really appreciate any help. Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source