jQuery Reset an Entire Form

Snippet

Reset an entire form, not just a field, to its original (onLoad) value.

You need the [0].

$('#form-id')[0].reset();

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.