Within my server-markup, I have an asp:Image element configured like this:
<asp:Image ID="Img1" runat="server"/>
However, when trying to locate this image in my JavaScript code, I encounter a hurdle due to ASP.Net altering the names. In the client-markup, the image appears as:
<img id="ctl00_Content_Img1"/>
This renaming process is likely because all elements are enclosed within a form named 'Content', which is standard practice, right? :)
Does anyone have any advice on how I can access this element from my JavaScript?
[EDIT] Is there a straightforward method to adjust my JavaScript logic to target the obfuscated id?