I am working on a jquery issue where I can’t hide a div using a button within it. See this fiddle for an example:
Is this a limitation of jquery? I’m at a loss as to why the ID returned is correct (and if you explicitly hide the ID in the js console it works!), but when Cancel is clicked nothing happens.

The problem is that when you click on cancel, it also triggers the hide graph event since it is in the same container. Using stopPropagation() you can cancel the bubbling effect.
http://jsfiddle.net/EfnND/35/
Comment out the stopPropagation() line to see in the console that it hides and shows simultaneously when you click cancel.