Check out this fiddle: https://jsfiddle.net/qxnk05ua/2/
I'm trying to get the background color to change when I click the button, but it's not working. Can you help me figure out why?
This is the Javascript code I'm using:
$(document).ready(function(){
$('.block button').click(function(){
$(this).parent().toggleClass('active');
});
});