selvi jp

selvi jp

  • 1.7k
  • 291
  • 16.2k

how can i split the array in dropdown menu

Aug 16 2021 7:27 AM

here i want to display the name and stored their id

var defaultValueArr = [];

Details.map((Det)=>{

defaultValueArr.push({ label:Det.profile_name, value:Det.user_id});  });

{Details.map(Det=>

options={Dropdownlist.map(e => ({ label: e.Name, value: e.Id}))} isMulti /> )}I want to split profilename by comma like this.


Answers (1)