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.
このプラグインを使用して、いくつかの html フィールドを検証しています。
しかし、「btnGravar」を 2 回クリックすると、これらのフィールドは非表示になり、「display:none」で消えます ...
誰かが理由を知っていますか?
ソースコード
「btnGravar」のタイプを変更して送信することをお勧めします。このボタンをクリックすると、フォームは完全に検証されるまで jQuery によって自動的にチェックされます。これの代わりに :
<input type="button" id="btnGravar" value="Gravar"/>
これを使って:
<input type="submit" id="btnGravar" value="Gravar"/>