You can do this with pure CSS, no need for JS (if styling is your only aim)
CSS:
input[type=checkbox]:checked ~ div {
some styles....
}
Ideally you will use class names and not tag names for the above.
More Related Contents:
- How can I custom-format the Autocomplete plug-in results?
- Long Press in JavaScript?
- How to use source: function()… and AJAX in JQuery UI autocomplete
- Is it possible to save HTML page as PDF using JavaScript or jquery?
- $(document).ready(function() VS $(function(){ [duplicate]
- Passing data to a jQuery UI Dialog
- Benefits vs. Pitfalls of hosting jQuery locally [closed]
- How to change date format (MM/DD/YY) to (YYYY-MM-DD) in date picker
- jQuery Deferred and Dialog box
- How to make supported on all browsers? Any alternatives?
- Is there a full working example for a jqGrid ColumnChooser? [closed]
- Vertical Tabs with JQuery?
- jQuery UI autocomplete with item and id
- Change CSS properties on click
- How to get the date from jQuery UI datepicker
- Check if date is in the past Javascript
- Disable future dates after today in Jquery Ui Datepicker
- Custom “confirm” dialog in JavaScript?
- jQuery Datepicker: Prevent closing picker when clicking a date
- JQuery – animate moving DOM element to new parent?
- Autocomplete requires you to click twice in iOS after update to 1.11.0
- How to get value from jQuery UI slider?
- How to change tabs programmatically in jquery-ui 1.9?
- script order for jquery with bootstrap
- Highcharts – Keep tooltip showing on click
- Programmatically drag and drop element onto another element
- changing text periodically in a span from an array with jquery
- Automatically resize jQuery UI dialog to the width of the content loaded by ajax
- jQuery UI DatePicker to show year only
- Returning value from confirmation dialog using JQuery UI dialog