I have a textbox on a webusercontrol thats on a webusercontrol thats on a webusercontrol thats on a page.
I tried using the javascript below but it cant find the control. Can anyone help me ?
<asp:Content ID="Content1" ContentPlaceHolderID="CustomerContentPlaceHolder" Runat="Server">
<SCRIPT language=javascript>
var control = document.getElementById("ctl00$CustomerContentPlaceHolder$NewLeadTabsWebUserControl1$TabContainer1$TabPanel1$LeadSummaryDetailsWebUserControl1$LeadNameAndPhoneNumberWebUserControl1$FirstNameTextBox");
alert(control)
if( control != null ){control.focus();}
</SCRIPT>
...
Go to the complete details ...