I am making a form validation and I set the property of other checkboxes disable if the owner checkbox is not checked but it is not working.  

Here's my html cod: 

```
<!DOCTYPE html>
<html>
<head>
    <title>jQuery</title>

    <script src="script.js"></script>
    <script src="min.js"></script>

</head>
<body>

Owner:<input type="checkbox" id="owner">
<hr>
<div id="check">
bicycle:<input type="checkbox" id="bicycle"><br>
bike:<input type="checkbox" id="bike"><br>
car:<input type="checkbox" id="car">
</div>

<script>

</script>

</body>
</html>

```

and in it min.js is jQuery installation file and ,  

here is script.js : 

```
$(document).ready(function(){

        var $checkbox = $("#check").find("input[type=checkbox]");
        $checkbox.prop('disabled', true);

        $("#owner").click(function(){
            var $ownercheck = $(this);

        if ($ownercheck.prop('checked') === true) {
                $checkbox.prop('disabled', false);
        }
        else
        {
            $checkbox.prop('disabled', true);
        }

    });

});

```