首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 级联下拉

级联下拉

  • 资源大小:4.60 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 下拉

资 源 简 介

Purpose: Generate two dependent HTML form select inputs The Basic requirement for me to write a class of this kind is to avoid the page reloading time, when the currently selected value on the first dropdown determine the option values that are made available on the second dropdown. When the page needs to be reloaded it is not pleasant for the users to wait until the page reload is complete, especially when their Internet to the server is slow. So what this class does is to generate Javascript code dynamically by fetching the select input option values from a database table and switch them when the user changes the parent select input. The class has two basic functions where one is responsible for querying the database and other is responsible for generating the Javascript code. There is also a function which is responsible for generating the HTML code for the select input.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP