function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nagarjuna Reddy.PNagarjuna Reddy.P 

populate picklist field value on select LWC

Hi,

I've to populate the saved picklist value on UI for HTML Select, and I'm completely struck with this.
Here is my select 

<tbody>
<template for:each={updatedItemList} for:item="updatedItem" for:index="index">
<td>
 <select name="Time Frames" class="select slds-select" data-label='timeFrames' data-index={index} onchange={itemUpdate}>
                    <option value="" >Select an Option</option>
                    <template for:each={itemList} for:item="item">
                      <option key={item.label} value={item.value} selected={item.selected}>{item.label}</option>
                    </template>
                  </select>
        </td>
   </template>
</tbody>
In Js Controller getting the slected value using event.target.value and passing to apex method where the upsert operation occurs and the picklist value updated successfully but the updated value is not populating at UI.

Here the updatedItemList has the latest updated value and when I tried by replacing value attribut for <option> as   value={updatedItem.value} , I'm getting the current field value from database and same value is passing to apex from event.target.value , but here need to get the current value selected.
Can you people please suggest me how to resolve this.

Thank you. 
PriyaPriya (Salesforce Developers)