emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 115 forks source link

trigger(addItem) #61

Closed kalius closed 13 years ago

kalius commented 13 years ago

I am trying to mannually add items to dropdowns with this $("#select").trigger("addItem",[{"title": "test", "value": "test"}]);, but it doesnt work? i have select tag with id="select", but it doesn't working. i just copy&pasted this code.

emposha commented 13 years ago

strange, couple questions 1) what version of fcbkcomplete do you use 2) browser

kalius commented 13 years ago

2.8.0 and chrome

emposha commented 13 years ago

2.8.0 has bug in public methods please update to 2.8.4

2.8.3 no more eval use public function addItem and removeItem fix (thanks to Yaron)

sandhyameena commented 10 years ago

I am trying to add manuallay additem in fcbkcomplete.but trigger doesn't work function setval() { key1.value="ss"; values.value="2";

            myObj.title = $("#key1").val();
            myObj.value = $("#values").val();
            $("#ddlregionsedit").trigger("addItem", myObj);
        }
sandhyameena commented 10 years ago

How do manually selected items in fcbkcomplete?