Cocktooldesse
New Member
guys I want to get text of as asp.net label control in javascript but it is showing me value as undefined. I dont know where I have mistaken as I dont have much knowledge of javascript.Thanks in advance , any type of help will be appreciated.My Code is like this:\[code\] <script type="text/javascript" language="javascript"> function getIndex(index) { var x = document.getElementsByName('lblAmount').Text; alert(x + ' '); } </script>\[/code\]And Label is Like this\[code\] <asp:Label ID="lblAmount" runat="server" Text="666"></asp:Label>\[/code\]