In the image below you can see there are 2 tabs:
- All Task Activity tab
- Comments tab
When the All Task Activity tab is clicked on, I need to change the CSS definition for the CSS class ".Activity-comment" to "display: block;"
When the Comments tab is clicked on, I need to change the CSS definition for the CSS class ".Activity-non-comment" to "display: none;"
So the goal is simple, both tabs will actually be showing the HTML DOM nodes for the same Div/Data. I will simply be showing/hiding records based on the clicked on tab.

Simple jQuery click event...
$('#task-modal-activity-comment-btn').click(function(e) {
// make CSS defintion for CSS class `.Activity-non-comment`
// = display: none;
e.preventDefault();
});
$('#task-modal-activity-btn').click(function(e) {
// make CSS definition for CSS class `.Activity-non-comment`
// = display: block;
e.preventDefault();
});
Based on my 2 jQuery click events above, how could I change the CSS definition for the mentioned CSS classes?
<style>element to the<head>that overrides the previously defined styles for the class. But in many cases it's easier to actually add a new class for affected elements.