Jquery ajax hide element on success request
I am trying to hide a button that i clicked on to upload a image after succesfull upload. this is my code: $(document).on('click', '.upload-image-click', function() { var token = $('input[name="csr"]').attr('value'); var formData = new FormData(); formData.append('image_file', $(this).siblings('input[name=image_file]')[0].files[0]); $.ajax({ url: '/image-upload-ajax/',…