Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript html input

const input = document.getElementById('input') as HTMLInputElement;

function getValue(){
  let value = input.value;
}
// then you apply this function to a button element in the HTML doc
// <button onclick="getValue()">Get value</button>
 
PREVIOUS NEXT
Tagged: #typescript #html #input
ADD COMMENT
Topic
Name
6+3 =