Jump to content

How can i stop propogation to ul/li list elements?


shortysbest

Recommended Posts

when i click on a <li> element the <ul> event toggles.

 

I have tried this code but it doesn't work.

 

$(document).ready(function(){
$("#notifications").click(function(event) { load_notifications();event.stopPropagation()});
});

 

#notifications is the parent ul element.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.