we use one asp button control and apply css class for background color and forecolor on click event
problem in syntax how use it
please give the solution
thanx in advance
Problem in assign css on button control by javascript
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Amit Singh
14-Jan-2011<asp:button ID="Button1" runat="server" text="Button" /> <script type="text/javascript"> document.getElementById("Button1").style.backgroundColor = "red"; document.getElementById("Button1").style.color = "Green"; </script>