Topic: "Uncaught TypeError: Cannot read property 'top' of undefined" using Alert at mdb.js:13417
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;
});
Add comment
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No