我有一个搜索数据库的js脚本,并且选择会在搜索表单中插入一个值。一切正常。但是在单击表单上的提交时,只有在IE中它才会使用提交的值使用GET方法执行clientdetails.php。在Firefox中,没有任何反应。
$(function() {
$( "#clientsearch" ).autocomplete({
source: 'backend_search_address2.php'
});
});
<form action="clientdetails.php" method = "get" role="form" style = "padding-top: 7%">
<div class="form-group input-group">
<input id= "clientsearch" type="text" name="client_id" class="form-control" placeholder="Search by address...">
<span class="input-group-btn">
<button type="submit" value="Submit" form="clientsearch" class="btn btn-default" role="button"></a><i class="glyphicon glyphicon-search"></i>
</button>
</span>
</div>
</form>