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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to clear multi drop down list when i click on button click?

Thread ID:

Created:

Updated:

Platform:

Replies:

118442 Mar 9,2015 10:29 AM UTC Mar 10,2015 10:19 AM UTC JavaScript 1
loading
Tags: ejDropDownList
chaitanya
Asked On March 9, 2015 10:29 AM UTC

HI,

How to clear Multi Drop Down list on button click (Ex: Reset Button).


Thanks and Regards,
Chaitanya

Harikrishnan P [Syncfusion]
Replied On March 10, 2015 10:19 AM UTC

Hi Chaitanya,

Thanks for using Syncfusion products.

Query: How to clear Multi Drop Down list on button click (Ex: Reset Button).

We can use the public method “clearText()” to clear the values in Dropdownlist. To access this public method we need to use the object of dropdownlist. Please refer the below code,

        function clearValue(e) {

            //Object for Dropdownlist is created

            var target = $('#skillsets').data("ejDropDownList");

            //clearText method is called to clear the values in Dropdownlist

            target.clearText();

        }

You can refer the following common user guide for JavaScript to know more about getting started with our components. Under each components we have provided “Concepts and features” section which explains about the features of the particular component.

http://help.syncfusion.com/web

You can also refer the following class reference link for JavaScript, which showcases all the properties, methods and events supported by each component.

http://help.syncfusion.com/cr/js

Please let us know if you have further queries.

Regards,

HariKrishnan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;