I donβt like to see the embedded code, so I would never use $ ("# <% = txt1.ClientID%>");
I would probably use $ ("input [id $ = 'txt1']"); since I would not have duplicate names in my code, and matching with a part that is not a .NET add-on will be reliable enough.
source share