function show_errors(errors) {
  for (var i = 0; i < errors.length; i++) {
    $("#ajax-error-message-text").append(`<div>${errors[i]}</div>`);
  }
  $("#ajax-error-message").removeAttr('hidden');
}
/* Add errors from an array to the #ajax-error-message div and remove hidden attribute */
Add errors from an array to the #ajax-error-message div and remove hidden attribute
Add errors from an array to the #ajax - error - message div and remove hidden attribute
function show_errors(errors) {
  for (var i = 0; i < errors.length; i++) {
    $("#ajax-error-message-text").append(`<div>${errors[i]}</div>`);
  }
  $("#ajax-error-message").removeAttr('hidden');
}
function show_errors ( errors ) { for ( var i = 0 ; i < errors . length ; i ++ ) { $ ( "#ajax-error-message-text" ) . append ( ` ${ errors [ i ] } ` ) ; } $ ( "#ajax-error-message" ) . removeAttr ( 'hidden' ) ; }
Add errors from an array to the #ajax-error-message div and remove hidden attribute
Add errors from an array to the #ajax - error - message div and remove hidden attribute