I have this html structure:
You should use actual generated HTML id using below syntax
That means you need to use client ID which can be accessed via below syntax
$('#<%= specialId.ClientID %>')