8 lines
302 B
JavaScript
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')
|
||
|
})
|