jquery "new function" equivalent
<p>Is there a jquery equivalent to this: </p>

<pre><code>document.getElementById(cbxFieldID).onclick = new Function("hideUnhideRows('" + cbxFieldID + "','" + txtFieldID + "')"); 
</code></pre>

<p>Basically, I want to configure a click event for an element and pass 2 parameters to the function at runtime.<br>
The problem is that the same variable values are passed regardless of the object clicked. Here is what I am using: </p>

<pre><code>$(cbxFieldID).change(function () { 
   var $cbxField = $("#" + cbxFieldID);
   var $txtField = $("#" + txtFieldID);
   hideUnhideRows($cbxField,$txtField);
});
</code></pre>

<p>Thanks in advance,</p>
