how to use one element to fire a click (one after another) if a condition is meet?
<p>Hello mate i have a problem.i have a click event that show() an initially hidden div when clicked. the opened div has an input form  </p>

<pre><code>$(".coll-menu-footer input.menu-btn").click(function(e) {
    $("div.new-coll").show();})
});
</code></pre>

<p>i want to use the same baton element to submit only when the div that it displays is open. </p>

<p>To make the question simple to understand, one element, same event, different action at every fireup.</p>

<p>first click show a hidden div, second click submits the input data. how is this possible mates.</p>
