jquery pass dynamic variable name
<pre><code>function liveUpdate(fld,value,id) {

    $.ajax({
      type: 'POST',
      url: 'myurl.html',
      data: { fld:value, 'id': id },
      success: function(data){//console.log(data);
      }
    });

    }
</code></pre>

<p>i want fld to be posted as fld's value not the variable name fld? i've tried to wrap around with eval but no luck</p>

<p>any ideas?</p>

<p>thanks</p>
