For example I have a form like this:
Using JavaScript give the form an ID of 'myform':
document.getElementById('myform').reset();