iv. Client-side validation
Modify tma02_admin.js to provide client-side validation of the 'Booking Reference' field using JavaScript.
(5 marks)
Mike wants the client-side to check for mistyped booking references and report them rather than submitting them to the server. He has decided that JavaScript client-side validation is needed to achieve that.
All booking references start with a group of three uppercase letters, followed by a forward slash (/) and then a six-digit number.
You need to extend the existing JavaScript validation so that the 'booking reference' field is constrained as described.
To do that, you will need to add additional code to the function validate() to recognize and check the new field, and modify the function validateForm() so the form cannot be submitted without a valid booking reference.
Add a comment to your validation code explaining the meaning of each part of your booking reference validation expression.
Note: achieving this validation by other means will not gain any marks.