public/js/form.js
//displayList of breed into select options
displayList of breed into select options
displayList of breed into select options
function display(response){
  list = response.petfinder.breeds.breed
  for (x in list){
    let breedName = list[x]['$t']
    let option = document.createElement("option");
    option.setAttribute('data-tokens',breedName);
    option.setAttribute('value',breedName);
    option.innerHTML = breedName;
    $(".selectpicker").append(option)
  }
}
function display ( response ) { list = response . petfinder . breeds . breed for ( x in list ) { let breedName = list [ x ] [ '$t' ] let option = document . createElement ( "option" ) ; option . setAttribute ( 'data-tokens' , breedName ) ; option . setAttribute ( 'value' , breedName ) ; option . innerHTML = breedName ; $ ( ".selectpicker" ) . append ( option ) } }
displayList of breed into select options
displayList of breed into select options