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.
我正在使用 jquery 在我的表单中有两个面板,一个是注册面板,另一个是登录面板。
我想单独验证它们。
现在拖板同时验证。
通常每个面板都有不同的 ID(或者我称之为 div)并分别为每个面板分配验证代码应该这样做..对于 ID div1,div2您将分别使用$("#div1")和$("#div2")
div1
div2
$("#div1")
$("#div2")
如果这仍然不清楚,请向我们展示一些代码以更好地了解您在做什么。
将它们分成 2 种形式。
<form id ='a'> <!-- panel 1 --> </form> <form id='b'> <!-- panel 2 --> </form>