JSFiddle - React, Tailwind, and code Playground
by spring loo
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input id="dom" type="text" value="2" />
<div id="ddom">1111</div>
JavaScript
$(function () {
var $dom = $('#dom');
$('#ddom').on('click', function(){
$(this).text($dom.val());
});
});