Nilesh Patil

Nilesh Patil

  • NA
  • 3k
  • 115.7k

How to change color of label on click event

Dec 1 2017 4:29 AM
Hi All,
 
I have label 
 
<asp:Label ID="lbldata" runat="server" class='a result btn-primary' Text='<%# Eval("Row#") %>' onclick='<%# "fnShow(" +Eval("PropertyDetailsId") + " );" %>' />
 
This label is generates number of labels its depend on Propertydetails ID
 
Its looks like Below image
 
So my requirement is how to change color of this lable when i click particular one. 
  
 
 

Answers (6)