Skip to content

Commit

Permalink
Change onchange
Browse files Browse the repository at this point in the history
Fix motivational letter
  • Loading branch information
lvps committed Mar 11, 2024
1 parent b061717 commit d0c1294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class="form-control">
</div>
<label for="area" class="col-md-2 col-lg-1 col-form-label"><?=__('Interesse')?></label>
<div class="col-md-5 col-lg-6">
<select id="area" name="area" required="required" class="form-control" onchange="updateHints()">
<select id="area" name="area" required="required" class="form-control">
<option value selected disabled class="d-none"></option>
<?php foreach ($allRoles as $value => $role) : ?>
<option <?= isset($roles[$value]) ? '' : 'disabled' ?> value="<?= $this->e($value) ?>"><?= $this->e($role) ?></option>
Expand Down Expand Up @@ -351,6 +351,7 @@ function updateHints() {
}

updateHints();
area.addEventListener("change", updateHints);

let yearSelector = document.getElementById("year");
let matricolaSelector = document.getElementById('matricola');
Expand Down

0 comments on commit d0c1294

Please sign in to comment.