Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有州和国家的表格,有关联,例如country has many states.
country has many states
我想根据国家选择构建一个州选择标签。就像没有任何宝石或插件的嵌套选择标签一样。是否提供任何辅助方法来执行上述任务。我不想要 JavaScript 的东西。
如果要state根据下拉列表中的内容填充下拉country列表,则必须使用 javascript。没有其他办法。
state
country