You haven’t shared your complete code or described which part of the code is not working as expected, so there’s only so much help we can give. From the snippet you shared it looks like you are trying to create an alert when something is clicked, but that alert is full of jQuery code. It also looks like you may have syntax errors along the lines of missing )s, but I didn’t check carefully.