JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="04/09/2013" class="date-time-date width-100 hasDatepicker" name="booking_info[@quot;to_time_24_date]" id="to_time_24_date" readonly="readonly">
<div></div>
JavaScript
$(function(){
var html = "<input";
$.each($("input")[0].attributes, function(i, a){
html += ' '+a.name+'="'+a.value+'"';
});
html += " />";
$("div").text(html);
});