JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css">
<div data-role="page" id="page_spots">
<div data-role="content">
<p>Some Content</p>
</div>
</div>
JavaScript
$(document).bind ('pageshow', function (e, data) {
console.log ($('#page_spots'));
console.log ($.mobile.activePage);
if ($.mobile.activePage.attr('id') == 'page_spots') { console.log ('Bingo!'); }
});