Amount starts class "valid", when default accepted
The default amount of $120 appears in the amount field, but the class "valid" was usually only added when the user changes the amount. The valid class must be added at the start to ensure someone simply clicking with the default still can donate.
This commit is contained in:
		
							parent
							
								
									9aa9e73a91
								
							
						
					
					
						commit
						c546833984
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -32,6 +32,7 @@ $(document).ready(function() { | |||
|         $control.find('.toggle-content').slideUp("slow"); | ||||
|         $control.find('.toggle-content').slideDown("slow"); | ||||
|     }); | ||||
|     $('#amount').addClass("valid"); | ||||
|     $('#amount').on('input', function() { | ||||
|         var input=$(this); | ||||
|         var value = input.val(); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn