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
sai ramsai ram 

how to add one combobox selected value to other combobox option in lwc

Hi i have country combobox and selected country combobox two combo box i have when i choose option in country combobox that selected value shown in selected country combobox.
eg;country have choose india option that india shown in selected country combobox
Danish HodaDanish Hoda
Hi Sai,
You can refer below one : 
<template>
    <lightning-combobox
            name="progress"
            label="Status"
            value={value}
            placeholder="Select Progress"
            options={options}
            onchange={handleChange} ></lightning-combobox>
    <lightning-combobox
            name="progress"
            label="Status"
            value={value}
            options={options} read-only 
            ></lightning-combobox>

    <p>Selected value is: {value}</p>
</template>

JS
import { LightningElement } from 'lwc';

export default class ComboboxBasic extends LightningElement {
    value = 'inProgress';

    get options() {
        return [
            { label: 'New', value: 'new' },
            { label: 'In Progress', value: 'inProgress' },
            { label: 'Finished', value: 'finished' },
        ];
    }

    handleChange(event) {
        this.value = event.detail.value;
    }
}