JSFiddle - React, Tailwind, and code Playground
by Giorgio
HTML
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<div id="forone">click</div>
<script>
$.fn.one = function() {
var $this = $(this)
$('body').append("<div id='fortwo'>click and here</div>");
$('body').on('click','#fortwo',function(){
$this.two();
});
}
$.fn.two = function() {
$(this).append('...two is done');
}
$('#forone').click(function() {
$(this).one();
});
</script>
</body>