Alright, stuck here... I have a twitter typeahead autocomplete complete box.
<div id="sites">
<span></h4>Site Review</h4><input class="typeahead form-control" type="text" placeholder="Spot Check for..."></span>
</div>
On selection of an autocomplete, rather than reload the page or an iframe, I would like to refresh a div that contains list elements unique to each 'site' stored in the mysql server. These will be fetched by get_site_attributes.php
$('.typeahead')
.typeahead(/* pass in your datasets and initialize the typeahead */)
.on('typeahead:selected', onAutocompleted)
.on('typeahead:autocompleted', onSelected);
function onAutocompleted($e, datum) {
...
}
function onSelected($e, datum) {
...
}
Now how do I reload that div with the content of get_site_attributes.php without using an iframe?
-thanks in advance