Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8569185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:16:33+00:00 2026-06-11T18:16:33+00:00

Currently, Autocomplete result box is aligned to the left edge of my input box

  • 0

Currently, Autocomplete result box is aligned to the left edge of my input box and spread towards the right by as much width as I give it. However, my business requirement is to align it to the right edge of the input box and spread it in the reverse direction if the input box is placed on the righter side of the page since result gets cut out and horizontal scroll is get added to view the complete result. (I am ok to modify my ‘jquery-ui.css’)

can anybody help in this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:16:34+00:00Added an answer on June 11, 2026 at 6:16 pm

    current version of jQuery UI allows giving the Autocomplete widget a position object with the options, with the same properties as the Position widget mentioned above. so you can use that to position the suggestions list as you like.

    see here http://jqueryui.com/demos/autocomplete/#option-position

    if you need change position dynamicaly – you need to use “open” event

    Code examples

    //Supply a callback function to handle the open event as an init option.
    $( ".selector" ).autocomplete({
       open: function(event, ui) { ... }
    });
    //Bind to the open event by type: autocompleteopen.
    $( ".selector" ).bind( "autocompleteopen", function(event, ui) {
      ...
    });
    

    inside them you can change position of autocomplie form within css()

    $('.ui-autocomplete').css({ 'left': x + 'px', 'top': y + 'px' });
    

    PS: I am not shure that you can achieve within using only css, as position depend on parent html input field

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a autocomplete feature for input text field. Currently I could use
I am currently using a single INPUT field to trigger jQuery UI Autocomplete, which
I'm using the popular JQuery Autocomplete plugin below. http://jqueryui.com/demos/autocomplete/ Currently if you type a
Background Currently in a project of mine I am using jQuery autocomplete for a
Currently, I have this version of the autocomplete control working when returning XML from
I am using jQuery autocomplete. Here is my HTML <input class=autocomplete_input> JS $(.autocomplete_input).autocomplete({ source:
Using the Ajax helper for CakePHP (currently 1.2.3.8166) to provide an $ajax->autoComplete list of
I am currently using this autocomplete plugin . It's pretty straightforward. It accepts a
I have a simple wikipedia autocomplete using the wikipedia's API. Currently it is working
I have an autocomplete widget that displays text w/ images. Currently my results look

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.