HTML:
<input type="file" onChange="readURL(this,'#Image2N');" name="txtImage2N" id="txtImage2N" value="<?php echo $Image2N;?>">
的javascript
$('#txtImage2N').on("change", function() {
var data = new FormData();
$.ajax({
url: 'load.php',
type: 'POST',
contentType: false,
data: data,
processData: false,
cache: false
})
});