3
我使用下面的代碼爲Ajax建議如何限制用戶選擇的形式AJAX自動compleate建議
<script type="text/javascript">
$(function(){
setAutoComplete("searchField", "results", "<?php echo base_url(); ?>index.php/user/autofillvalue/<?php echo $this->uri->segment(3); ?>?part=");
});
和HTML我的代碼是
<div class="input text required" id="auto">
<input id="searchField" type="text" name="searchField" class='inp-form' autocomplete="off">
</div>
的推薦代碼json編碼。我想限制最終用戶只選擇表單建議值。怎麼可能?