Reputation: 815
I'm using the jQuery autoComplete plugin. Is it possible to open the autocomplete div where the user is typing? Right now if I have an input that is width 500px, the autocomplete div opens with a width of 500px. I changed that to 150px. and would like to position the autocomplete div near where the user is typing.
Ideas? Thanks
Upvotes: 0
Views: 281
Reputation: 3743
You can use jQuery UI Position Utility:
$("#some-element").autocomplete( "option", "position", { my : "right top", at: "right bottom" } );
http://docs.jquery.com/UI/Position
Upvotes: 1