jQuery: execute method from string
<p>Is there a way to call methods by their name in jQuery? For example:</p>

<pre><code>var condition = true;
$('div').execute(condition ? 'show':'hide');
</code></pre>
