Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove space in input field html

let input = document.getElementsByName("my_input")[0];
let val = input.value.replace(/s/g, "");
alert(val);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #space #input #field #html
ADD COMMENT
Topic
Name
3+7 =