title: How to get ids when a value is selected in fcbkcomplete? - jsfiddle added
body: <p>Please go through the below fiddle. I am trying to get the ids of the selected products in the <code>fcbkcomplete</code> box and show it as comma separated values in the textbox with <code>id="interest"</code>. I wrote a function to achieve that but it didn't work. The function adds the id of the first value and not taking the ids of the other values which are added in the multiple selection box.</p>
  
  <p><a href="http://jsfiddle.net/balac/xDtrZ/1/" rel="nofollow">http://jsfiddle.net/balac/xDtrZ/1/</a></p>
  
  <p>I have added <code>json.txt</code>. it contains datas like this</p>
  
  <pre><code>[{"key":"2", "value":"Canon Powershot "},{"key":"3", "value":"Fastrack Bag"},{"key":"4", "value":"Iphone 4 "},{"key":"5", "value":"Levis Jeans"},{"key":"7", "value":"Indig"},{"key":"8", "value":"Dashing Cars"},{"key":"9", "value":"dsdas"},{"key":"10", "value":"fsfs"}]
  </code></pre>
  
  <p>In the above json value key is the id which I want to display in the textbox as comma separated values. value is the value which will be coming in the dropdown for selection.</p>
  
  <p>while selecting the values in the drop down i want the corresponding key to get added in the textbox as comma separated values.</p>
  
  <p>The problem is that only the key of the first selected item is getting added in the textbox, no matter.</p>
  
  <p>Hope am specific and said all in detail. if anyone want any clarification please ask me i will explain more.</p>