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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

event dropdownlist element id

Thread ID:

Created:

Updated:

Platform:

Replies:

131970 Aug 6,2017 01:21 PM UTC Aug 7,2017 09:42 AM UTC JavaScript 1
loading
Tags: ejDropDownList
serdar
Asked On August 6, 2017 01:21 PM UTC

hello 
 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", "")
}

  $('#cart_drpProductMainGroup').ejDropDownList({
            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 09:42 AM UTC

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   
   
      
Regards,   
Keerthana 


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

;