Are you sure the element is actually visible? I also recommend using a console.log rather than an alert

2 Likes