I have a form made with ajax using Ajax.BeginForm
this I have it in a modal, the problem that I have is that when I send the form I make the modal one close with jQuery
but if I open the modal the values of the inputs that I had previously entered are still there ... I need to refresh the modality when sending the form so that the input of my form is cleaned.
How can I achieve this?
What he tried was that he places in onComplete
a $("input").val(" ")
but I do not know if there is some other better way to do it, as I mentioned at the beginning maybe refresh the modality when sending the form or clean the input from another way.