shortysbest Posted December 12, 2010 Share Posted December 12, 2010 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. Link to comment https://forums.phpfreaks.com/topic/221357-how-can-i-stop-propogation-to-ulli-list-elements/ Share on other sites More sharing options...
Adam Posted December 12, 2010 Share Posted December 12, 2010 Can you show the load_notifications() function? Link to comment https://forums.phpfreaks.com/topic/221357-how-can-i-stop-propogation-to-ulli-list-elements/#findComment-1146376 Share on other sites More sharing options...
shortysbest Posted December 12, 2010 Author Share Posted December 12, 2010 forgot to mark as solved. Link to comment https://forums.phpfreaks.com/topic/221357-how-can-i-stop-propogation-to-ulli-list-elements/#findComment-1146387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.