6
Answers

How to change color of label on click event

Nilesh Patil

Nilesh Patil

7y
175
1
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)