Code successfully upload file when I remove jquery script codes and submit. But with the following code, text in output div disappears and new text from other page does not write there either.
<script type="text/javascript">
$(document).ready(function(){
$("[name='video-submit']").click(function() {
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
data: $("#VideoForm").serialize(),
url: "cp.cs.asp?Process=UploadVideo",
success: function(output) {
$("#output").html(output);
},
error: function(output) {
$("#output").html(output);
}
}); //close $.ajax(
});
});
</script>
<div id="form">
<form method="post" id="VideoForm">
<fieldset>
<div class="required">
<label for="VideoURL">Video File</label>
<input type="file" size="23" name="VideoFile">
<input type="button" name="video-submit" id="video-submit" value="Upload" />
</div>
</fieldset>
</form>
<div id="output">
fds
</div>