The following small make up will bring you a simple JS control button color with the click to change the implementation method. I think this is quite good. Now I will share it with you and give you a reference. Let's take a look at the following small series to bring you a simple JS control button color with the click to change the implementation method. I think this is quite good. Now I will share it with you and give you a reference. Let's take a look at it with xiaobian.
First:
// Yesterday clickfunction yesterdayDate () {document. getElementById ('title '). value = getYesterdayDate (new Date (); fetYesterdayData (); today.css ('color', '#555555');} // Today's clickfunction todayDate () {document. getElementById ('title '). value = formatterDateStr (new Date (); fetTodayData (); today.css ('color', '# 0062cc ');}
OK, complete
The above is the details about how to change the color of the button controlled by JS. For more information, see other related articles in the first PHP community!