I wrote some codes to generate a input field with auto complete
functionality, these codes work well in a regular form, the codes are:
<%= auto_complete_field( “vc_container_no”,
:frequency => 0.01,
:min_chars => 2,
:tokens => ‘,’) %>
However, when I use the same codes inside a :partial and render them
collection, the input field still there, but the auto complete function
no longer exist. At first I was suspecting that the problem come from
the duplicate IDs of the and the
collection, so I add a unique no. after the IDs, but it stills doesn’t
I have worked on this problem the whole week but can not find solution,
anyone have some idea about that? or has a sucessful experience of
rendering :partial with auto_complete_field inside?
Thanks in advance.