click event of parent triggered
<p>Problem is solved, i made another stupid mistake in my code... sorry, thanks</p>

<p>example: </p>

<pre><code>&lt;div id="window1Header" class="windowHeader"&gt;
   Window 1 &lt;a id="min1" class="minimize"&gt;[-]&lt;/a&gt; &lt;a id="max1" class="maximize"&gt;[+]&lt;/a&gt;
&lt;/div&gt;
&lt;script&gt;
    $(function() {

    $(".windowHeader").mousedown(function () { 
  $(this).parent().css({"border" : "#000 1px dashed"});
  $(this).parent().draggable({ containment: 'parent' });
 });
$(".windowHeader").mouseup(function () { 
  $(this).parent().css({"border" : "#ccc 1px solid"});
  setTimeout(function() {
   $(this).parent().draggable('destroy');
   }, 100);
 });

   $('#min1').click(function(e) {
     e.stopPropagation();
        $("#window1Body").hide().slideUp(500);
});
$('#max1').click(function(e) {
 e.stopPropagation();
        $("#window1Body").hide().slideDown(500);
});

    });
&lt;/script&gt;
</code></pre>

<p>The outerdiv (window1Header) has a mousedown and up event and the 2 links (min1 and max1) have click-events. But clicking the links wil trigger the event binded to window1Header.
 How can i trigger the right events?
I'm using the jquery library btw.</p>

<p>Any help is appreciated!</p>
