As mentioned at the jQuery 3.0 upgrade guide [1] the `bind` method is deprecated. Replace with `on` method. [1] https://jquery.com/upgrade-guide/3.0/#deprecated-bind-and-delegate
4 lines
86 B
Plaintext
4 lines
86 B
Plaintext
$(".delete").on("ajax:success", function () {
|
|
$(this).closest("div").fadeOut();
|
|
});
|