JSFiddle - React, Tailwind, and code Playground
HTML
<div class="left booktext">
ARRIVAL
<div class="bookborder">
<input type="hidden" name="checkin" value="2014-03-05">
<input type="text" class="bookfields hasDatepicker" style="width:65px;" id="checkin-select" placeholder="dd/mm/yyyy">
</div>
</div>
JavaScript
var ur_text = "your text";
$('.booktext').contents().filter(function(){
return this.nodeType !== 1;
}).remove().end().prepend('your text');