JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<div id="data141" data-module="Sources" data-module-id="sourcePane">
<button type="button" class="green90x24" id="restoreButton141Data">Restore 141 Data</button>
</div>
<div id="attr141" data-module="Sources" data-module-id="sourcePane">
<button type="button" class="green90x24" id="restoreButton141Attr">Restore 141 Attr</button>
</div>
<div id="data143" data-module="Sources" data-module-id="sourcePane">
<button type="button" class="green90x24" id="restoreButton143Data">Restore 143 Data</button>
</div>
JavaScript
var jq143 = jQuery.noConflict();
console.log(jq143.fn.jquery);
console.log($.fn.jquery);
$(function () {
$('#restoreButton141Data').click(function () {
var sources$ = $('#data141').data('module');
if (sources$ === undefined) {
sources$ = 'undefined';
}
$(this).parent().append(sources$);
});
$('#restoreButton141Attr').click(function () {
var sources$ = $('#attr141').attr('data-module');
if (sources$ === undefined) {
sources$ = 'undefined';
}
$(this).parent().append(sources$);
});
});
jq143(function () {
jq143('#restoreButton143Data').click(function () {
var sources$ = jq143('#data143').data('module');
if (sources$ === undefined) {
sources$ = 'undefined';
}
jq143(this).parent().append(sources$);
});
});