$(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') })