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 を取得して電子メール フィールドの値を取得し、それをメッセージ フィールドに追加することです。
ここに値が保存されています:
var email = $('#email').val();
何か案は?
$("#message").val ($("#message").val () + $('#email').val());
これはうまくいくはずです:
$("#message").val( $("#message").val() + $('#email').val() );