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});
});
});
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});
});
});
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pradeep SahooRank #489 · 5.1K reputationPosted Aug 8, 2021, 12:24 PM EDT