jquery clear form values

JavaScript
$('.login-form').trigger("reset");$(".reset").click(function() {
    $(this).closest('form').find("input[type=text], textarea").val("");
});
Source

Also in JavaScript: