My scenario, the initial page is loaded two buttons in gray color. If the user clicks on button one to open popup modal to perform some actions, then click on server side SAVE button and hide the popup modal and button one change GRAY color Gray to Blue. This
BLUE color is staying permanently if the user does the same procedures on button two and so on.
You can set the buttons in gray color using CSS. Then bind javascript function to the SAVE button's onclick event. In the javascript code you can change button one's color from GRAY to BLUE.
The following link shows how to change the style using JavaScript, please take it as reference.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
6490 Points
2525 Posts
Re: Change color of the buttons to popup bootstrap modal when click on them
Feb 08, 2017 01:33 AM|Jean Sun|LINK
Hi avt2k7,
You can set the buttons in gray color using CSS. Then bind javascript function to the SAVE button's onclick event. In the javascript code you can change button one's color from GRAY to BLUE.
The following link shows how to change the style using JavaScript, please take it as reference.
http://www.w3schools.com/js/js_htmldom_css.asp
Best Regards,
Jean
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.