form validation

This commit is contained in:
soyed 2021-03-10 15:03:22 -05:00
parent 158bd61be7
commit a470a86d6c
3 changed files with 27 additions and 9 deletions

View file

@ -32,5 +32,24 @@ function getAvailability(date) {
//Form Validation
function validateForm(){
//first check that the user has selected,
var serviceSelected = $('#selectService option:selected').val();
console.log(optionSelected);
if (serviceSelected === "Select Service"){
alert("*Please select a service");
}
//next check for the technician selected by the users
var technicanSelected = $('#technicanSelected option:selected').val();
console.log(technicanSelected);
if(technicanSelected === "Select technican"){
alert("*Please select a technican")
}
//next, check for appointment date selection
//next, check for appointment time selection
// Account Section
//check for creditCard holder name
// check for credit card Format.
// check for t
}