$( 'textarea[name="phone_text"]' ).autocomplete({ autoFocus: true, source: [ ], minLength: 1, delay: 50, position: { my : "left top", at: "left bottom" } }); $( 'input[name="state"]' ).autocomplete({ autoFocus: true, source: [ "AZ", "CO", "VA", "IL", "GA" ], minLength: 1, delay: 50, position: { my : "left top", at: "left bottom" } }); $('input[name="address"]').autocomplete({ source: "geo.php", minLength: 15 }); $('input[name="addcomment"]').autocomplete({ source: "api-comms.php", minLength: 2 });