Topic: "Uncaught TypeError: Cannot read property 'top' of undefined" using Alert at mdb.js:13417

Vasilev pro asked 7 years ago


i use alerts for making successful info message but error appears. what  is wrong?

$('.set-id-address').on('click', function (e) {

e.preventDefault();
var id_address = $(this).data('id_address');
var id = $(this).data('id');

$.ajax({
url: '/addresses/set-id-address',
data: {id_address: id_address, id: id},
type: 'get',
success: function (res) {
 toastr.success(res);
},

error: function () {
alert('error')
}
});
this.disabled = true;
});



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags