associative arrays as selectors and values in jquery
<p>Is it possible to implement associative arrays as Selectors and Values.</p>

<p>I have an array</p>

<pre><code>   var obj = { surgeon:1, asstSurgeon:2, anesthe:3, nurse:4, scrub:5,....... };
</code></pre>

<p>I am able to implement like this.</p>

<pre><code>$("#surgeon").click(function(){
   $("$hiddenvariable").val(1);
});

$("#asstSurgeon").click(function(){
  $("$hiddenvariable").val(2);
});

................,
</code></pre>

<p>Can anyone help me how can i reduce the code.</p>

<p>Is there any other way to implement this.</p>
