I am using typescript in my application.
html code:
<input type="text" name="lastname" id="last">
Typescript code:
let myContainer = <HTMLElement>document.getElementById('last');
myContainer.innerHTML = "";
I want to set the empty value for the last name field using typescript. I am using above code. But cannot able to add empty value using typescript.
I also tried by using below code:
document.getElementById('last').innerHTML = "";
How to assign empty value for the textbox using typescript?