ajax bei download raus

This commit is contained in:
2017-03-02 22:13:56 +01:00
parent a3656f432b
commit 88f9b1bff6
2 changed files with 6 additions and 8 deletions

View File

@@ -5,8 +5,12 @@ jQuery(document).ready(function($) {
e.preventDefault(); // this disables the submit button so the user stays on the page
// Validation
let code = $('input[name=code]').val();
if ( code.length < 8 ) {
jQuery('#resp').html('Code ist zu kurz!');
} else {
data = {'code' : $('input[name=code]').val(),