JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<input type="text" class="datepicker" />
<div class="console"></div>
JavaScript
var $console = $('.console');
var $picker = $('.datepicker');
$console.append('ID before creation: ' + $picker.attr('id') + '<br>');
$picker.datepicker();
$console.append('ID after creation: ' + $picker.attr('id') + '<br>');
$picker.datepicker('destroy');
$console.append('ID after destruction: ' + $picker.attr('id') + '<br>');