cursor stoppropagagtion on child elements

589 views Asked by At

So, I'm using the following to make a container div link to another website:

 $("#container").click(function(e) {
    var senderElement = e.target;
    //check if sender is the DIV element
    window.location = 'http://domain.com';
    return true;
});
 $("#container *").click(function(e) {
   //do something
   e.stopPropagation();
})

How can I make a cursor appear as a 'pointer'- $('selector').css( 'cursor', 'pointer' );- only for the parent (#container)?

Thanks!

0

There are 0 answers