We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Get Selected item values from Dropdown list

Hello Pauls,

How can I copy the the selected items from dropdown_list to textarea
dropdown

Thanks in Advance... )

1 Reply

DT Dhivyalakshmi Thirumurugan Syncfusion Team June 24, 2016 11:56 AM UTC

Hi Vishnupranay, 

Thank you for contacting Syncfusion support. 

We can achieve you requirement by using  checkChange event which is used to get the value of checked items and we can pass this as the value of textarea. Please find the code below. 

    @Html.EJ().DropDownList("skillsets").Datasource((IEnumerable<SyncfusionMvcApplication2.Controllers.HomeController.Languages>)ViewBag.datasource).DropDownListFields(f=> f.Text("text")).ShowCheckbox(true).ClientSideEvents(e => e.CheckChange("onCheck")) 

<script>   

function onCheck(args) { 

        txt1.value = args.text; 

    } 

</script> 

We have prepared a sample as per your requirement which can be downloaded from the below link. 


Please let us know if you need any further assistance. 

Regards, 
Dhivyalakshmi. 


Loader.
Up arrow icon