Closed sunmingtao closed 2 years ago
Turns out there is a click event on class check-btn
, which redirects the page to attribute target
, which happens to be undefined
for this link.
The solution is remove the class and add $(this).spinAndDisable();
to the click event on $('#check-item-button')
$('.check-btn').one('click', function(){
$(this).spinAndDisable();
window.location.href = $(this).attr('target');
});
html:
jQuery: