any idea not to select the name that is already choosen in token input?
Posted
by
regmiprem
on Stack Overflow
See other posts from Stack Overflow
or by regmiprem
Published on 2012-08-28T06:50:33Z
Indexed on
2012/08/28
9:38 UTC
Read the original article
Hit count: 228
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!
© Stack Overflow or respective owner