Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 545.5k

Background color of span tag

Oct 18 2022 10:54 AM

Hi

  How to change the Background color of span tag on basis of some value using Jquery. I want if value of Status is Current then Span Background color should be Green.

<span id="span0">
    <asp:Literal ID="ltrlStatus" runat="server" Text='<%# Eval("Status").ToString().Trim() %>'></asp:Literal>
    <asp:Literal ID="ltrlDate" runat="server" Text='<%# Eval("Date","{0: dd-MM-yyyy}") %>'></asp:Literal>
</span>

Thanks


Answers (1)