$('selector').autocomplete( { position: { my: "left bottom",at: "left top",collision: "flip" },. . });