Click here to Skip to main content
15,883,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my requirements is..
am using 3 buttons if i put the mouse any butoon it will change the color so how to write code for all buttons

i write this code for my application
C#
function color(x)
{
if(x==1){
var a = document.getElementById("<=button1.ClientId%>");
 a.style.BackgroundColor="#####";
}
if(x==2)
{ 
var b=document.getElementById("<button1.ClientId%>");
 b.style.Backgroundcolor="######";
}
}
Posted
Updated 9-Sep-12 17:50pm
v2
Comments
ZurdoDev 13-Sep-12 14:57pm    
search on jquery selectors.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900