You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello this is the exemple of data :
var classetData1 = [
{
"id": "IIa",
"disabled": false,
"groupName": "Classe de dispositif médical",
"groupId": 1,
"selected": false,
"name": "IIa",
"idtag": "groupeA"
}
];
var classetData2 = [
{
"id": "I",
"disabled": false,
"groupName": "Classe de protection contre les chocs électriques",
"groupId": 2,
"selected": false,
"name": "I",
"idtag": "groupeB"
}
];
And my fonction, i had the second set after a choice:
var dropdown = $('.classProduct-multiple').dropdown({
searchable:false,
multipleMode: 'label',
limitCount:5,
data:classetData1,
extendProps:['idtag'],
choice : function () {
// console.log(arguments,this);
var selectedItemId = arguments[1]["id"];
var selectedGroupId = arguments[1]["idtag"];
updateMultipleSelectGroup(selectedGroupId, selectedItemId);
console.log("selectedItemId", selectedItemId);
if (selectedGroupId == 1) {
$(this).update(classetData2,false);
}
}
Hello, the update method to add some new options values doesn't work,
Even in your page exemple (https://janking.github.io/dropdown/).
if i select the first and last value and click on the ajax bouton to update data,
all the first data block is duplicate.
Can you correct this pb ?
Thank you
The text was updated successfully, but these errors were encountered: