Hi guys,
I use a lot of JS in my ASP.Net page. At the moment I try to access a lot of labels in usercontrols. In normal labels without UCs, $get and getElementByID both work. But now not.
alert(document.getElementById('<%= ucBW1.FindControl("lblTime").ClientID %>').innerHTML);
alert($get('<%= ucBW1.FindControl("lblTime").ClientID %>').innerHTML);
So, the usercontrol-control-id (what a word) is found correctly by both, but the $get gets an "object expected". (Of curse I tried it seperatly).
Any ideas?
(The alert is only to test what I get, I want to change the innerHTML)