any idea not to select the name that is already choosen in token input?
- by regmiprem
Is there any idea not to select the name that is already choosen in token input? for example In first i select mango when i search for m. Next time again when i search for m Mango should not be displayed as mango is already choosen. Is there any idea?
<%= f.text_field :plan_tokens, data: {load: @customer.plans} %>
I study this from
I have my js like this
jQuery -
$('#customer_plan_tokens').tokenInput '/plans.json'
theme: 'facebook'
prePopulate: $('#customer_plan_tokens').data('load')
where to put preventDuplicates:true. I did try but error arise!
http://railscasts.com/episodes/258-token-fields
http://railscasts.com/episodes/258-token-fields-revised