I am trying to set the text of a lable control using JQuery. The Label control is an Asp.net label control.
Can someone look at my two lines of JQuery below, that are not working. I am not sure if the JQuery syntact is correct.
$('#fooLabel').val('Hello World'); // first try Not working
$('fooLabel').val(''Hello World'); // Second tryn Not working
<asp:Label ID="fooLabel" visible="true" runat="server"></asp:Label>