reset form after submission
hi guys,... can anyone help please,... I started new topic since the other one is an php format,... I need to reset form field after submission,...
here is my form:
<form action="/photo_comments/report_spam/80" id="ReportComments_80" onsubmit="return false;" update="updateReportPhotoComment_80" method="post" accept-charset="utf-8">
<div style="display:none;"><input type="hidden" name="_method" value="POST"></div>
<input type="hidden" name="data[Report][sender_id]" value="47" id="ReportSenderId">
<textarea name="data[Report][content]" id="ReportContent"></textarea>
<div class="submit"><input type="submit" value="Report"></div>
</form>
and here is the script that I can't figure out,...
<script>
$(document).ready(function() {
var options = {
resetForm: true // reset the form after successful submit
};
$('#ReportComments_<?php echo $photo_comment['PhotoComment']['id'] ?>').ajaxForm(options);
});
</script>
thanks in advance
chris