Change element's text or html after click
<p>I want to change <code>span</code> element's text with click:</p>

<pre><code>$('.int-bank h2 span').text('Open List');
$('.int-bank h2').bind("click", function (e) {
    $(this).next("p").toggleClass("lblock");
    var spn = $(this).find("span");
    spn.text('Close List');
});
</code></pre>

<p>But in second click, the span's text doesnot change to "Open List" . How can I do this?</p>

<p>Thanks in Advance</p>
