jQuery uses CSS selector syntax.
For ID Selector it must be a prefix with the # symbol. Example, $('#DOMElementId')
Check jQuery selector list
In your case, the correct one should be
$('#<%= ddl.ID %>').bind('change',myfunction) // if you have no master page or //ClientIDMode="static"
or
$('#<%= ddl.ClientID %>').bind('change',myfunction)
source share