【JavaScript】input event

説明

input event:輸入文字→觸發動作

 

input#textInputer(type="text" placeholder="input something")
p#inputStatus
textInputer.addEventListener("input", function(){
 inputStatus.textContent=this.value;
})

Display

Leave a Reply

Your email address will not be published. Required fields are marked *