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
850 B

  1. // Image upload for front id
  2. $('#ContentPlaceHolder1_reg_front_id').on('change', function (e) {
  3. debugger
  4. $('.loadImg').remove();
  5. // console.log(e.target, 'e')
  6. for (var i = 0; i < e.target.files.length; i++) {
  7. var tmppath = URL.createObjectURL(e.target.files[i]);
  8. $(this).after('<span class="loadImg"><img src="' + tmppath + '" alt=""></span>');
  9. $(".loadImg img").fadeIn("fast");
  10. }
  11. });
  12. // Image upload for back id
  13. $('#ContentPlaceHolder1_reg_back_id').on('change', function (e) {
  14. $('.loadImg1').remove();
  15. // console.log(e.target, 'e')
  16. for (var i = 0; i < e.target.files.length; i++) {
  17. var tmppath = URL.createObjectURL(e.target.files[i]);
  18. $(this).after('<span class="loadImg1"><img src="' + tmppath + '" alt=""></span>');
  19. $(".loadImg1 img").fadeIn("fast");
  20. }
  21. });