Checkbox with jQuery

HTML

<label>
    <input type="checkbox" id="eins" class="checkbox1" />
    Checkbox 1
</label>

<br />

<label>
    <input type="checkbox" id="zwei" class="checkbox2" />
    Checkbox 2
</label>

CSS

body { padding: 10px }

JavaScript

$(".checkbox1").on("click", function() {
    var checkbox2 = $(".checkbox2");
    checkbox2.prop("disabled", !checkbox2.prop("disabled"));
});