使用php在类别和子类别选择中存在问题 [英] There is a problem in category and sub category selection using php
本文介绍了使用php在类别和子类别选择中存在问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有三个下拉列表相互连接,如示例所示
下拉列表
这些列表工作正常但我想禁用剩余列表,直到我从父列表中选择任何项目。
解决方案
尝试jQuery:
< ! DOCTYPE html >
< html >
< head >
< script sr c = http://ajax.googleapis.com/ajax/libs/jquery/1.11.1 /jquery.min.js\"> < / script >
< script >
(document).ready(function(){
( '#汽车')。改变(函数(){
i have three drop-down lists connected with each other and as shown in example
drop down lists
these lists are working properly but i want to disable remaining lists until i select any item from parent list.
解决方案
Try jQuery:
<!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script>
(document).ready(function(){
('#cars').change(function(){
这篇关于使用php在类别和子类别选择中存在问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文