2
ユーザーがクリアボタンをクリックしたときに、私は、これは何も入力ボックスのテキストを設定しようとするJS使用してい入力ボックスのテキストを変更するにはどうすればよいですか?ここで
// This code is not inside of the clearText function
var input = document.getElementById("input");
// this code is inside of the clearText function
input.innerHTML = "";
は、私は、入力ボックスとクリアボタンのために使用されるHTMLです:
<input id="input" type="text">
<button onclick="clearText()">Clear Factors</button>
私は間違っていますか?
今すぐ試してみるよ。 @fredriksapps – Tler
それは動作します!ありがとう:D – Tler
@fredrikapps私はちょうどその笑を行うことを計画していた!私ができるまで12分待たなければならなかった – Tler