I have a ddl and am trying to use jquery to execute an event when selected option is change but the function for the change event is being executed when the page loads.
$(function () {
$("#<%= ddlMake.ClientID %>").change(handleddl1());});
Does it matter if it is a asp ddl being populated by sql datasource?
Any explanation as to why and how I could make it work as needed would be appreciated.
Because you’re calling
handleddl1instead of just passing it. Use this instead: