form validation
This commit is contained in:
		
							parent
							
								
									158bd61be7
								
							
						
					
					
						commit
						a470a86d6c
					
				
					 3 changed files with 27 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue