UI-Dropdown icon indicating copy to clipboard operation
UI-Dropdown copied to clipboard

Dropdown: The method you called is not defined. (2) ["change", "values"]

Open cjwotbot opened this issue 7 years ago • 1 comments

I get the error whenever I try to call the behavior dropdown('change values', obj).

Any idea how to fix this? For other behaviors, it's okay. Here's the snippet of my code.

        test = [{name: 'name', value: 'value'}]
        $('.payment_term_id').dropdown('change values', test)

cjwotbot avatar Oct 24 '17 06:10 cjwotbot

This is how you set new values:

test = [{name: 'title1', value: 'value1'}, { name: 'title2', value: 'value2'}];

blub0hr avatar Nov 20 '17 15:11 blub0hr