$('#sections_select').html("<%= escape_javascript(options_for_select(@sections)) %>"); $('#questions_select').html("<%= escape_javascript(options_for_select(@questions)) %>");