Ramco Ramco

Ramco Ramco

  • 440
  • 3.4k
  • 529.4k

Clear all Input Values

Jun 19 2021 11:51 AM

Hi

   I have code to clear inputs in each Javacript file like below. Is there any way that a common class in a project or something else which when called clear all Input values.

function clearTextBox() {
    $('#txtId').val("");
    $('#txtDescription').val("");
    $('#txtIsActive').val("");
}

Thanks


Answers (6)