Skip to content

Instantly share code, notes, and snippets.

@abdul-shajin
Created January 28, 2012 12:05
Show Gist options
  • Save abdul-shajin/1694091 to your computer and use it in GitHub Desktop.
Save abdul-shajin/1694091 to your computer and use it in GitHub Desktop.
stackoverflow_jquery
$(".stream-cell").click(function(e) {
$(this).parent().find(".stream-cell").children(".more_content").slideDown("slow");
$(this).parent().find(".stream-cell").addClass("open_content");
});
I want to check e is coming from <a> tag or <div>
If e is from anchor tag, I want to call some ajax requests, or else, I want to call the existing lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment