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.

event dropdownlist element id

Thread ID:





131970 Aug 6,2017 09:21 AM Aug 7,2017 05:42 AM JavaScript 1
Tags: ejDropDownList
Asked On August 6, 2017 09:21 AM

 How do I get the dropdownlist id I clicked on?
Because I can not see it on the list

example : cart_drpProductMainGroup id 

thank you
function drpselectchange(sender) {
     $("#" + this.id).css("border", "")

            dataSource: units,
            fields: { id: "id", text: "text" },
            width: 260,
            showCheckbox: false,
            dataSource: GetMainGroups(),
            fields: { id: "GroupID", text: "Name" },
            select: "drpselectchange",
            create: "drpcreate",
            popupHide: "drppopuphide",
            popupShown: "drppopupshow",
            beforePopupShown: "drpbeforepopupshow",
            change: "drpvaluechange",
            select: "drpselectchange",
            actionComplete: "drpactionComplete",
            actionFailure: "drpactionFailure",
            actionSuccess: "drpactionSuccess",

            enableFilterSearch: true,
            enablePopupResize: true,

Keerthana Rajendran [Syncfusion]
Replied On August 7, 2017 05:42 AM

Hi Serdar,   
Thank you for contacting Syncfusion Support.   
We suggest to use “this._id” instead of this.id in your code to get the id of current DropDownList. Please refer the given code   
function drpselectchange(sender) {   
            $("#" + this._id+"_container").css("border", "1px solid black")   
We have attached a sample for your reference. Please refer to the below link   


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.

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.