Accessing Custom Control Properties

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Accessing Custom Control Properties

I have a custom control with a property called EnableControl that is set up in the C# code behind. I can set it just fine in the html when the control is set up:

   1.  <uc5:AEPDropDownListCTL ID="ddlPaymentMonth" runat="server"
                    EnableControl="true" EnableValidator="true" IsRequired="true" Label="" />

But i can't figure out how set it using JQuery. I've tried .attr() but can't get it to work:

   1. $('#<%= ddlPaymentMonth.ClientID %>').attr('EnableControl', 'true');