Javascript可降解级联下拉列表

发布于 2024-08-12 23:14:00 字数 104 浏览 3 评论 0原文

我在一个表单中有 2-3 个相互依赖的列表。如果其中一项发生更改,则会进行 ajax 调用并加载其他项。 我想知道你们中是否有人知道一种使这个下拉列表 js 可降解的方法。

谢谢

I have 2-3 list within a form that rely on each other. If one is changed an ajax call is made and the others are loaded.
I was wondering if any of you knew of a method to make this dropdownlist js degradable.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好菇凉咱不稀罕他 2024-08-19 23:14:00

您可以将其分成多个表单,因此当提交第一个表单时,服务器将检查然后输出第二个表单。

Javascript 将简单地覆盖提交函数并动态创建/填充其余部分。

You could break it up into multiple forms, so when the first is submitted, the server will check and then put out the 2nd form.

The Javascript would simply override the submit functions and create/populate the rest on the fly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文