forked from applegrew/django-select2
-
-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Clearing value of dependent fields not working for multiple dependent fields
for me this selector will not match if there are multiple field names
$('[data-select2-dependent-fields=' + name + ']').each(function () {
$(this).val('').trigger('change')
})
what is working for me is to change it like this
$("[data-select2-dependent-fields~='" + name + "']").each(function () {
$(this).val('').trigger('change')
})
quevon24
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working