mayur pandit

mayur pandit

  • 1.4k
  • 337
  • 61.5k

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)