6
Answers

Clear all Input Values

Photo of Ramco Ramco

Ramco Ramco

4y
526
1

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)

Next Recommended Forum