IDDRS/static/js/data_entry/new_entry.js
2022-07-25 12:03:35 +02:00

8 lines
302 B
JavaScript

$(document).ready(function(){
var $select1 = $('#levelSelect'),
$select2 = $('#standardSelect')
$options = $select2.find('option');
$select1.on('change', function(){
$select2.html($options.filter('[data-value="'+this.value+'"]'));
}).trigger('change')
})