How to use jQuery Tokeninput with best_in_place gem in rails?

125 Views Asked by At

When I click the best_in_place span class it gives text input form, so how can we use that text input field for jQuery Tokeninput functionality, really getting no idea. What is the id of text input field created by best_in_place.

html file is,

<tbody class="song-index">
   <td><%= best_in_place @song, :name %></td>               
</tbody>  

js file is

$(document).ready(function() {
 jQuery(".best_in_place").best_in_place();  
});  
0

There are 0 best solutions below