Title: autocomplete appendTo
Last modified: August 22, 2016

---

# autocomplete appendTo

 *  [ccgjosh](https://wordpress.org/support/users/ccgjosh/)
 * (@ccgjosh)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/autocomplete-appendto/)
 * Any chance of passing the appendTo arg without modifying the plugin? I’d like
   to limit the width of the ul by appending it to a div.
 * [https://wordpress.org/plugins/search-autocomplete/](https://wordpress.org/plugins/search-autocomplete/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Gabe Shackle](https://wordpress.org/support/users/hereswhatidid/)
 * (@hereswhatidid)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/autocomplete-appendto/#post-5699060)
 * You should be able to override all the styles just with your own custom CSS either
   in a theme or plugin. The two primary selectors to target the autocomplete are:
 * ui-autocomplete: The menu used to display matches to the user.
    ui-autocomplete-
   input: The input element that the Autocomplete widget was instantiated with.
 * And there’s more info here: [http://api.jqueryui.com/theming/css-framework/](http://api.jqueryui.com/theming/css-framework/)
 *  Thread Starter [ccgjosh](https://wordpress.org/support/users/ccgjosh/)
 * (@ccgjosh)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/autocomplete-appendto/#post-5699070)
 * Indeed but the .ui-autocomplete gets appended to the bottom of the page, right
   before </body>, so there’s no way to contain the width unless I set a fixed width.
   Problem with that is that since the site is responsive, the form width changes.
 * I may end up using wp_deregister_script for your js, and register a copied version
   with the addition args.
 *  [mbohea](https://wordpress.org/support/users/mbohea/)
 * (@mbohea)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/autocomplete-appendto/#post-5699298)
 * It’d be a nice feature to have – the ability to specify which element you’d like
   your autocomplete list appended to.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘autocomplete appendTo’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/search-autocomplete_f8fbfd.svg)
 * [SearchAutocomplete](https://wordpress.org/plugins/search-autocomplete/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-autocomplete/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-autocomplete/)
 * [Active Topics](https://wordpress.org/support/plugin/search-autocomplete/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-autocomplete/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-autocomplete/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [mbohea](https://wordpress.org/support/users/mbohea/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/autocomplete-appendto/#post-5699298)
 * Status: not resolved