javascript clear text input code example
Example 1: clear textbox js
function name()
{
document.getElementById('elementid').value = "";
}
Example 2: js remove value input
document.getElementById("YourID").value = '';
function name()
{
document.getElementById('elementid').value = "";
}
document.getElementById("YourID").value = '';