Answer the question
In order to leave comments, you need to log in
Why doesn't the color change on click?
https://jsfiddle.net/puckk4bv/13/
Answer the question
In order to leave comments, you need to log in
On onload and syntax. On the JSFiddle where you choose the library, set Load Type : OnLoad
$('.but1').click(function(){
$('.first').css({"background-color": 'yellow'});
$('.second').css({"background-color": 'green'});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question