I want to clear all input and textarea fields in a form. It works like the following when using an input button with the reset
class:
$(\".reset
@using (Ajax.BeginForm("Create", "AcceptanceQualityDefect", new AjaxOptions()
{
OnSuccess = "ClearInput",
HttpMethod = "Post",
UpdateTargetId = "defect-list",
InsertionMode = InsertionMode.Replace
}, new { @id = "frmID" }))
frmID
is the identification of the formOnSuccess
of the operation we call the JavaScript function with the name "ClearInput
"
if you do both of these right, then you will not be able to stop it from working...