function loadHeroList() {
  $.get('/app/feeds/personas.csv', function(data) {
    var data = Papa.parse(data, {header: true, encoding: "utf8"}).data;
    array.personas.hero = data;
    var select = '<option value="0" disabled="">Select One...</option>';
    for (i = 0; i < data.length; i++) {
      select += '<option value="' + data[i].index + '">' + data[i].name + '</option>';
    }
    $('select[role="hero-selector"]').html(select);
    $('#start-button').attr('disabled', false)
  })
}
// Load hero list and apply dropdown selection options
Load hero list and apply dropdown selection options
Load hero list and apply dropdown selection options
function loadHeroList() {
  $.get('/app/feeds/personas.csv', function(data) {
    var data = Papa.parse(data, {header: true, encoding: "utf8"}).data;
    array.personas.hero = data;
    var select = '<option value="0" disabled="">Select One...</option>';
    for (i = 0; i < data.length; i++) {
      select += '<option value="' + data[i].index + '">' + data[i].name + '</option>';
    }
    $('select[role="hero-selector"]').html(select);
    $('#start-button').attr('disabled', false)
  })
}
function loadHeroList ( ) { $ . get ( '/app/feeds/personas.csv' , function ( data ) { var data = Papa . parse ( data , { header : true , encoding : "utf8" } ) . data ; array . personas . hero = data ; var select = '<option value="0" disabled="">Select One...</option>' ; for ( i = 0 ; i < data . length ; i ++ ) { select += '<option value="' + data [ i ] . index + '">' + data [ i ] . name + '</option>' ; } $ ( 'select[role="hero-selector"]' ) . html ( select ) ; $ ( '#start-button' ) . attr ( 'disabled' , false ) } ) }
Load hero list and apply dropdown selection options
Load hero list and apply dropdown selection options