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 关注
- 115 浏览
添加回答
举报