$(function() {
$('#project-list-autocomplete').autocomplete({
source: "/rails_controller/json_action"
});
where json_action is a method that returns the autocomplete values, but I couldn't figure out the format of the JSON. It's:[{"id":"1", "label":"autoanswer1"},
{"id":"2", "label":"autoanswer2"}]
and so on.
No comments:
Post a Comment