JavaScript 数字判定
Q&A
Closed
JavaScriptで、数字の判定を行いたいです。
入力フォームに入力された数字を送信ボタンを押した際に、
数字以外をエラー表示させたいのですが、ヒントいただけないでしょうか?
該当するソースコード
例)
送信
button.addEventListener('click', function (){
const textBox = document.getElementById('input');
const inputValue = textBox.value;
const output = inputValue;
document.getElementById('outputArea').textContent = output;
document.getElementById('input').value = "";
});
0