selvi jp

selvi jp

  • NA
  • 323
  • 77.8k

Multi dropdown in react js

Aug 5 2021 11:28 AM

here display label name.and value also name.but i want to display label is name and passing the userid for value

 var defaultValueArr = [];

           Details.map((Det)=>{  

               Det.name.split(',').map((e)=>{  

                 defaultValueArr.push({ label:e, value: e});   

                 });  

              });


Answers (1)