Answers for "How do I clear inpput area after I press enter"

0

How do I clear inpput area after I press enter

'keydown input[type="text"]': function(event, template) {
    if ((27 === event.which) || (13 === event.which)) {
        event.preventDefault();
        //this should delete value from the input
        event.currentTarget.value = "";
    }
}
Posted by: Guest on July-10-2021

Code answers related to "How do I clear inpput area after I press enter"

Browse Popular Code Answers by Language