Here is my code
jquery code
$(\"input#shopName\").autocomplete({ source: \"getShop.php\", minLength: 2 });
The JSON value r
This works for me fantastically:
$(ui)[0].item.label $(ui)[0].item.value