I have an icon that when clicked will fire off a mailto:
URL. Seems simple enough, but it's not working. When debugging I click the icon and the event handler does fire and executes the code within it, but then does nothing. Why doesn't this work?
<i id="email-icon" class="fa fa-envelope"></i>
$("#email-icon").on("click", function () {
window.location.href = "mailto:mail@example.org";
});
I have a feeling the event is getting canceled in jQuery somehow?