javascript reset a function code example Example 1: form reset jquery $('#form_id').trigger("reset"); Example 2: form reset jquery $('#form').get(0).reset()