how to show or hide input text on button click javascript code example
Example: html click hide textbox
//hide
document.getElementById("idOfTextField").style.display = 'none';
//visible
document.getElementById("idOfTextField").style.display = '';
//hide
document.getElementById("idOfTextField").style.display = 'none';
//visible
document.getElementById("idOfTextField").style.display = '';