Home  >  Article  >  Backend Development  >  怎么实现在select中选完以后在下一级select自动显示和上一级相关的数据行

怎么实现在select中选完以后在下一级select自动显示和上一级相关的数据行

WBOY
WBOYOriginal
2016-06-20 12:37:281343browse

ajax不太懂,怎么把选完第一级select的选项提交给PHP处理


回复讨论(解决方案)

参考: http://blog.chinaunix.net/uid-7254998-id-145002.html


例子里的action为空,新手是肯定不知道问题出在哪里的。。。

对啊,我把例子里面的全复制到一个php文件里没成功,form的action我要填到另一个处理页面,我想一点第一个下拉列表就根据选的值无刷新改变第二个列表的选项。

使用 jq 就很简单

$v";  exit;}?>

Statement:
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