PATH:
home
/
lab2454c
/
sportsnovate.com
/
backups
/
core
/
resources
/
views
/
common
<script> $(document).ready(function() { var i=$("tbody.ProductImageBody").children().length; $("#addMoreImages").on('click',function(){ var data = $('#ProductImageTemplate').clone(true); data.find('.productImage').attr('name', 'image['+i+']'); data.find(".imageId").attr("name", "image_id["+i+"]"); data.removeAttr('id'); data.removeAttr('style'); $('tbody.ProductImageBody').append(data); i++; $(".remove").on('click',function(e){ e.preventDefault(); Swal.fire({ title: 'Careful!', text: "Are you sure you want to Remove row ?", icon: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Remove this!', }).then((result) => { if (result.isConfirmed) { Swal.fire({ title: 'Removed!', text: 'File has been removed.', icon:'success', timer: 1400, }) $(this).closest('tr').remove(); } }); }); }); $(".remove").on('click',function(e){ e.preventDefault(); Swal.fire({ title: 'Careful!', text: "Are you sure you want to Remove row ?", icon: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Remove this!', }).then((result) => { if (result.isConfirmed) { Swal.fire({ title: 'Removed!', text: 'File has been removed.', icon:'success', timer: 1400, }) $(this).closest('tr').remove(); } }); }); }); </script>
[+]
..
[-] addMoreImages.blade.php
[edit]