i want to define a clear button that instead of resetting the entire form, only the text values are set to "". I tried with
document.getEle mentById("LastN ameRow").value = "";
but when my program runs, i enter data into the last name field and then press clear and the data remains. what am i missing? I know that i am entering my clear routine on click because my alerts are printing.
document.getEle mentById("LastN ameRow").value = "";
but when my program runs, i enter data into the last name field and then press clear and the data remains. what am i missing? I know that i am entering my clear routine on click because my alerts are printing.
Comment