$(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