Home > database >  Click a div change the background color of the another div
Click a div change the background color of the another div

Time:09-27

As title, and to give detailed process

CodePudding user response:

//jQuery written 
$(function () {
$(" # divA "). Click (function () {
$(" # divB "). The CSS (" background - color ", "red");
});
});
  • Related