Calling dynamic jQuery plugin with dynamic parameters in Javascript
<p>Suppose we need to dynamically construct plugin calls such as </p>

<pre><code>$('#myDiv').myPlugin({a:'a',b:'b'});
</code></pre>

<p>will be something like:</p>

<pre><code>function funcCallBuilder(selector, func, opts){
  //dynamically construct plugin call here
}
</code></pre>

<p>using:</p>

<pre><code>funcCallBuilder('#myDiv', 'myPlugin', {a:'a',b:'b'});
</code></pre>

<p>Can someone point out the correct way of doing this?</p>
