I want to show the uploaded image on the same page without refreshing the page .
<form action='xyz.php' method='post' enctype='multipart/form-data'>
<input type='file' name='image' id='image'>
<input type='submit' name='ok' id='ok' value='upload'>
</form>
<div id='uploadedImage'></div>
<script>
$(document).ready(function(){
$('#ok').click(function (e) {
e.preventDefault();
// then should be the jquery ajax call and response ?
// help with this code .
});
});
</script>