<script type="text/javascript">
function readURL(input){
if(input.files && input.files[0]){
var reader = new FileReader();
reader.onload = function(e){
$('#tampil').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#fupload").change(function(){
readURL(this);
$('#hasil').show();
});
</script>