Unable to delete the selected value in coral3 selection | Community
Skip to main content
Amit-Tiwari
Level 4
March 28, 2019
Solved

Unable to delete the selected value in coral3 selection

  • March 28, 2019
  • 1 reply
  • 1071 views

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".

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 28, 2019