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