2020-03-29から1日間の記事一覧
コード HTML <input type="text" name="restaurant_name" > <input type="hidden" name="restaurant_id"> 検索BOXを表示する。 jQuery $('input[name="restaurant_name"]').autocomplete({ source: function( req, res ) { $.ajax({ url: "/api/restaurants/?=" + encodeURIComponent(req.term), type: "GET", dataType: "json", succe…