I am using getJson to pull in some info onto the page
$('#request_song').autocomplete({
serviceUrl: '<%= ajax_path("trackName") %>',
minChars:1,
width: 300,
delimiter: /(,|;)\s*/,
deferRequestBy: 0, //miliseconds
params: { artists: 'Yes' },
onSelect: function(value, data){
// alert('You selected: ' + value + ', ' + $('#request_artist').val());
$.getJSON('/get_events', function(data) {
$(data).each(function(key, value) {
console.log(value);
});
});
},
});
The json will have the name of the event and the city and date
I need to make a have a div that is on the page have the values from the json like
<div id="event_data">
//table info from json