I am displaying a container <div class="expand"> that - when clicked on - expands the section below it:
HTML:
<div class="expand">
<div class="container1">
<div class="container2">
<a class="view">View</a>
<a class="download">Download</a>
</div>
</div>
</div>
<section class="hidden">
...
</section>
jQuery:
$('.expand').click(function () {
var $this = $(this);
$this.next().show();
});
As you can see, there also a "Download" button as a child element of the <div class="expand">. This Download button should be the only element in this very container that does not trigger the said section to be shown.
So I would like to do something like this:
$('.expand').not(".download").click(function () {
...
});
or
$('.expand').except(".download").click(function () {
...
});
$('.download').click(function () {download