meltingice/ajax-chosen — Issue #5: Programmatically force to search
Author: BlaM
Created: 2012-01-02 16:13:29+00:00
State: open

Hey, what about a challenge? :)

What I need to do is to have an option to trigger a search from my program code - followed by selecting an item from the list.

Example:

The list contains the items
- 1 - peach
- 2 - pineapple
- 3 - passiflora

The user clicks on a button somewhere in the page. That button should trigger an event and force the list to be set to "apple"

ajaxChosen would need to do an ajax request to fetch the id and the item "apple", modify the list and then select the specified item.

I will try to solve that myself now, but I'll do it in JavaScript. No time to learn CoffeeScript now.