selvi jp

selvi jp

  • 1.8k
  • 291
  • 16.2k

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)