How do I get the ID of a server control with jQuery?
E.g. I have
a
var labelID = $('#<%= label1.ClientID %>');
You need to get the client ID.
If you just need the ID, and not the actual value of the control, then you don't even need jQuery.
var labelID = '<%= label1.ClientID %>';