You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
850 B

// Image upload for front id
$('#ContentPlaceHolder1_reg_front_id').on('change', function (e) {
debugger
$('.loadImg').remove();
// console.log(e.target, 'e')
for (var i = 0; i < e.target.files.length; i++) {
var tmppath = URL.createObjectURL(e.target.files[i]);
$(this).after('<span class="loadImg"><img src="' + tmppath + '" alt=""></span>');
$(".loadImg img").fadeIn("fast");
}
});
// Image upload for back id
$('#ContentPlaceHolder1_reg_back_id').on('change', function (e) {
$('.loadImg1').remove();
// console.log(e.target, 'e')
for (var i = 0; i < e.target.files.length; i++) {
var tmppath = URL.createObjectURL(e.target.files[i]);
$(this).after('<span class="loadImg1"><img src="' + tmppath + '" alt=""></span>');
$(".loadImg1 img").fadeIn("fast");
}
});