I am encountering an issue with locating an element on my webpage.
<asp:Button ID="buttonToFind" runat="server" OnClick="SomeProcess" />
While using JavaScript, I am attempting to find this control with the following code:
document.getElementById("buttonToFind");
Unfortunately, the control cannot be found. It seems that the asp:Button is converted into an input element? This input has a new ID that includes the original ID along with additional characters, making it difficult to locate the original ID on the page.
Is my understanding correct?
Furthermore, how can I specify the correct ID to search for in this scenario?