1 回答

TA貢獻1111條經驗 獲得超0個贊
我找出了問題所在:我添加了一個按鈕,然后使用搜索方法代碼從該按鈕觸發了“search_batch_name_barn”的自動完成:default.js
$("#getBatch").click(function () {
alert("test");
$(".search_batch_name_barn").show();
$(".search_batch_name_barn").autocomplete('search');
});
超文本標記語言
<input type="text" class="form-control search_occupied_barn_name" placeholder="Type here ..." name="barn_name">
<span class="help-block search_occupied_barn_name_empty" style="display: none;">No Results Found ...</span>
<input type="hidden" class="search_barn_id" name="barn_id" id="barn_idorg">
<button type="button" class="btn btn-primary" name ="getBatch" id="getBatch">Get Batch</button>
<label>????</label><br>
<input type="text" class="form-control search_batch_name_barn" placeholder="Type here ..." name="BatchName">
<span class="help-block search_batch_name_barn_empty" style="display: none;">No Results Found ...</span>
<input type="hidden" class="search_batch_id" name="batch_id" id="batch_id">
- 1 回答
- 0 關注
- 168 瀏覽
添加回答
舉報