With the Awesome font , I want to use the icon-remove icon. Thus, I have <i class="icon-remove"></i> in my HTML, which works fine. However, I wanted to make it bindable in jQuery to close the div for me.
So, I used:
$(".icon-remove").click(function() { alert("HELLO"); $(".login-window").hide(); $(".register-window").hide(); $(".shadow").hide(); });
However, this does not work. When I click on it, nothing happens.
This is the CSS I used (also note: cursor: pointer; doesn't work).
.icon-remove { display: block; color: #444; cursor: pointer; float: right; margin-right: 15px; }
What exactly am I doing wrong?
source share