I am using HINT.css
and would like to have the tip hide when the div/class is clicked and turned on when the use mouses out of the div/class. I thought what I have here was pretty straight forward. I am surprised it didn't work, what am I missing?
<div class="promo">
<div class="offer hint--top hint--info hint--rounded hint--info"
data-hint="PUT SOME COOL COPY, TO GET PEOPLE TO CLICK!!!"></div>
</div>
$(document).ready(function() {
$( '.promo' ).on('click','.offer', function(){
$(this).hide();
});
$( '.promo' ).on('mouseleave','.offer', function(){
$(this).show();
});
}); //end of document ready