I am using the script below to submit information to the database. I am trying to clear the textarea as well as the file input with the onclick event as I want to keep the other hidden field value. For some reason it will not clear at all and I am not sure why..Any help would be greatly appreciated..Thanks
<fieldset>
<legend>Add Information</legend>
<form action="scripts/ajaxupload1.php" method="post" name="standard_use" id="standard_use" enctype="multipart/form-data">
<p>Description:<br /><textarea name="description" id="description" rows="8" cols="80" /></textarea>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'description',
{
fullPage : true
});
//]]>
</script>
<input type="hidden" name="entryid" value="<?php echo ''.$_GET['id'].'' ?>" /></p>
<p><input type="file" name="filename" id="filename" /></p>
<button onclick="ajaxUpload(this.form,'scripts/ajaxupload1.php?filename=filename&maxSize=9999999999&maxW=1000&fullPath=http://www.tristatefoliagewonder.com/new_site/uploads/&relPath=../uploads/&colorR=255&colorG=255&colorB=255&maxH=1000','upload_area','File Uploading Please Wait...<br /><img src=\'images/loader_light_blue.gif\' width=\'128\' height=\'15\' border=\'0\' />','<img src=\'images/error.gif\' width=\'16\' height=\'16\' border=\'0\' /> Error in Upload, check settings and path info in source code.');document.standard_use.description.value='';return false; ">Upload Image</button>
</form>
</fieldset>
Select all Open in new window