I have a required input :
<input type="text" id="input-id" required>
When user submit it I send its value with ajax and then clear it with
$("#input-id").val("").
After it input becomes invalid, but I want to make it looks like it did right after page loading. How can I do it with js? Maybe I should clear input in another way?