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.
22 lines
842 B
22 lines
842 B
// Image upload for front id
|
|
$('#MainContent_reg_front_id').on('change', function (e) {
|
|
$('.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
|
|
$('#MainContent_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");
|
|
}
|
|
});
|