$('#header-location-dropdown').locationSelect({ locations: locations, choose_events: [ function() { $('.location-title').text(this.chosen_location.title); $('.location-phone').text(this.chosen_location.phone); $('.location-address').html(this.chosen_location.address); } ] });