Append Auto Suggest list to specific html tag?
Right now I have a script that auto suggests some post titles, using wordpress' suggest.js
script type="text/javascript"
var se_ajax_url = '?php echo admin_url('admin-ajax.php'); ?';
jQuery(document).ready(function() {
jQuery('#love-input').suggest(se_ajax_url + '?action=se_lookup', {
onSelect: function() {
thevalue = this.value;
thevalue = thevalue.split(' (');
jQuery('#love-input').val(thevalue[0]);
}
});
});
However, it appends the list to the bottom of my body tag, and I can't figure out how to put it in the specific div that I want. Help!
Topic autocomplete Wordpress
Category Web