Hi,
There is a detailsview which contains a textbox in editmode.
How to get the id of the textbox in javascript?
I tried this:
<asp:DetailsVie w ID="DetailsView 1" runat="server" >
<asp:TemplateFi eld>
<EditItemTempla te>
<asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
</EditItemTemplat e>
</asp:TemplateFie ld>
</asp:DetailsView >
<script type="text/javascript">
var txt=document.ge tElementById('T extBox1')
....
Thanks
Dan
There is a detailsview which contains a textbox in editmode.
How to get the id of the textbox in javascript?
I tried this:
<asp:DetailsVie w ID="DetailsView 1" runat="server" >
<asp:TemplateFi eld>
<EditItemTempla te>
<asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
</EditItemTemplat e>
</asp:TemplateFie ld>
</asp:DetailsView >
<script type="text/javascript">
var txt=document.ge tElementById('T extBox1')
....
Thanks
Dan
Comment