mayur pandit

mayur pandit

  • 1.6k
  • 279
  • 21.4k

javascript code not working

Nov 19 2019 2:06 AM
I want to get lable value in alert. I have try many way using javascript and jquery also. I have not getting any value from label. Kindy check html and jquery code below.
 
 
<asp:Label ID="label" runat="server">test</asp:Label>
 
alert($('#label').val());

Answers (7)