Unable to delete the selected value in coral3 selection | Adobe Higher Education
Skip to main content
Amit-Tiwari
Level 4
March 28, 2019
Beantwortet

Unable to delete the selected value in coral3 selection

  • March 28, 2019
  • 1 Antwort
  • 1070 Ansichten

In one of our component we are developing , we have a scenario selecting on the path browser we will get the child nodes and set these values into the selection field.

we have created a listener and on selection of the Path browser we will make a ajax an call and get all the child nodes of it and i am setting values in the selection filed.The problem is was unable to delete the only selected value it is appending to my child list.

var test2= $("[name='./childproperty']")[0];

var length = $(".coral3-SelectList-item").length;

if(length >0){

$(".coral3-SelectList-item").remove();

}

-.each(pathbrowserchildvalues, function(value,lang) {

$(test2).append('<coral-select-item>'+value.text+'</coral-select-item>);

});

note:- from ajax i am getting the values of "pathbrowserchildvalues".

Dieses Thema wurde für Antworten geschlossen.

1 Antwort

arunpatidar
Community Advisor
Community Advisor
March 28, 2019