Hello, I want to count the number of selected values in a dropdown in order to show it in a field.
My jquery code to get the number of options works fine :
Could you help me, it shoud be very tricky... Thanks
My jquery code to get the number of options works fine :
JavaScript:
var selectTrainees = $('data_trainings___trainings_trainnes').length;
var numberTrainees = $('data_trainings___training_total_trainees');
if (selectTrainees !== '') {
numberTrainees.value = selectTrainees;
}
Could you help me, it shoud be very tricky... Thanks