JSFiddle - React, Tailwind, and code Playground
by avrahamcool
HTML
<div>this one is not selected</div>
<div>parent is not selected
<div>Arrival Date: 19/09/2013</div>
<div>Departure Date: 21/09/2013</div>
<div>Nights: 2</div>
<form id="rooms-booking-manager-change-search-form"></form>
<div>this one is not selected</div>
</div>
JavaScript
$("#rooms-booking-manager-change-search-form").prevAll('div').css('background-color', 'red');