If we want to clear the input form fields, jQuery provides a method named ".val()"
This method can used to set the input fields to an empty string.
$('#userForm').find('input[type="text"], input[type="text"], textarea').val(' ');
Using the .val() method we have set the fields to an empty string.
This way the form fields are cleared.