UI-Dropdown
UI-Dropdown copied to clipboard
Dropdown: The method you called is not defined. (2) ["change", "values"]
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)
This is how you set new values:
test = [{name: 'title1', value: 'value1'}, { name: 'title2', value: 'value2'}];