JSFiddle - React, Tailwind, and code Playground
HTML
<div class="box">
<a href="#" data-page="page">Load</a>
<a href="#" data-page="page-2">Load 2</a>
</div>
CSS
.box {
width: 200px;
height: 200px;
border: 1px solid #ccc;
}
JavaScript
$('.box').bind('click','touch',function(){
var $dataPage = $(this).children().attr('data-page');
//var $dataPage = $(this).children().next().attr('data-page');
alert($dataPage);
});