Help with jQuery code

$(document).ready(function(){
	$('#div_id').click(function(){
		$('#div_id').addClass('class2');	// '#div_id' <==> this  // this will apply class2 on the div by clicking on it
	});
	
	$('#div_id').click(function(){
		$('button').addClass('class1');		// this will apply class1 on the buttons by clicking on the div
	});
	
	$('#div_id').click(function(){
		$('button').css({				// this will apply css elements to all buttons
			'color': 'red',
			'font-size': '30pt',
			'background-color': '#ccc'
		});
	});

});

Is there any something wrong with this code?
I tried to run it but still not working

I move your post to its own thread,

In the future, please create your own topic when you have specific questions about your own code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow-up questions concerning other replies given to the original poster.

Thank you.

Please post the full code on something like Codepen and link to it here. We need to see the HTML and CSS and see if you have linked to jQuery correctly.