How to trigger a toggle function by click another click-event-handler?
<p>I have already searched the google oracle etc and found this <a href="http://stackoverflow.com/questions/3370934/trigger-second-function-in-toggle">Trigger second function in toggle()</a> similar article, but it doesnt helps me.</p>

<p>My pricip is the same, i have a toggle function which includes two other functions.</p>

<pre class="lang-sql prettyprint-override"><code>$('#master').toggle($.proxy(this.fnctA,this), $.proxy(this.fnctB,this));
</code></pre>

<p>within the #click element i have some necessary attributes which i need in the functions <code>fnctA</code> or <code>fnctB</code>.</p>

<p>my new task is that i create two buttons (one for <code>fnctA</code> and one for <code>fnctB</code>) out of these area. and they should do the same as i clicked the #master.</p>

<p>i.e. what I want is:</p>

<pre class="lang-sql prettyprint-override"><code>    $('.fnctA').bind('click', $.proxy(this.testA, this));
    $('.fnctB').bind('click', $.proxy(this.testB, this));

    testA:function(){
        $("#master").toggle('firstToggle');
    },
    testB:function(){
        $("#master").toggle('lastToggle');
    }
</code></pre>

<p>can any give me any tips etc?</p>
