Textfields check in feedback form
This commit is contained in:
		
							parent
							
								
									47818c444e
								
							
						
					
					
						commit
						838871b3c2
					
				| @ -56,6 +56,11 @@ block content | ||||
|                     allAnswered = false; | ||||
|                 } | ||||
|             }); | ||||
|             $("input:text").each(function(){ | ||||
|                 if ($(this).val().length === 0) { | ||||
|                     allAnswered = false; | ||||
|                 } | ||||
|             }); | ||||
|             if (!allAnswered) { | ||||
|                 alert('You did not answer all the questions'); | ||||
|                 return false; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user