可以搜索的下拉框,这种是如何做的

WBOY
Release: 2016-06-13 12:13:48
Original
1639 people have browsed it

可以搜索的下拉框,这种是怎么做的
就比如
我一个下拉框里面有语文老师,数学老师,英文老师等
我选中数学老师,按下搜索,所有的数学老师就都显示出来
这个应如何去做呢

------解决思路----------------------
js监控键盘ajax搜索数据库返回信息,点击跳转链接
------解决思路----------------------
去看下jquery easy ui 的combox就可以了,很简单的
------解决思路----------------------

参考下









编号 名称



$teacher = $_POST['teach'];
$sql = "select * from tb where teacher like '"%".$teacher."%"'";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
    $data[] = $row;
}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template