How to hang event one parent?

Hi!
How to change the code to parent."parent" was chosen only 1 time, not using a variable for it.
.children1 and input to the first level parent .parent.
$(".parent .children1").click(function() {
 $(".parent input").prop("checked", false);
 });
June 10th 19 at 14:44
1 answer
June 10th 19 at 14:46
Solution
$(".parent .children1").click(function() {
 $(this).next('input').prop("checked", false);
});

$(".parent .children1").click(function() {
 $(this).prev('input').prop("checked", false);
});

$(".parent .children1").click(function() {
 $(this).closest('.parent').find('input').prop("checked", false);
 });


Find more questions by tags JavaScript