入力に入力されたものがあれば何でも既存のテキストを変更しようとしています。私はid = "text"から取り出そうとしますが、それはうまくいかず、単にテキストを表示します。入力IDからテキストを変更する
<input type="text" class="form-control" id="text" placeholder="Type your text here.....">
<div class="form-group">
<button>submit</button>
</div>
<div class="form-group" id="response">
<pre>Type some text in the above text field, then log the text out here on button click</pre>
</div>
<script>
$('button').click(function() {
$("#response").text("#text");
});
</script>
'$( "#応答")。テキスト($("#から値を取得しますテキスト ")。val());' – Satpal