You want to select the input, then take its parent div:
$("input[value="hello"]").parent("div").css("background", "red");
You want to select the input, then take its parent div:
$("input[value="hello"]").parent("div").css("background", "red");