我在 jquerymobile 工作。我只是想从标签中获取字符串并将其转换为 int 然后递增一。这是我在jsfiddle中所做的
我的代码是
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
<div data-role="navbar" data-mini="true" >
<a href="#" data-role="button" class="HeaderButton" data-icon="edit"> </a>
<div data-role="controlgroup" data-type="horizontal" style="float: right;padding-right: 2%;">
<a href="#" data-role="button" id="aPreviousPage" onclick="PreviousPage()" data-icon="arrow-l" data-iconpos="left" data-theme="a"> </a>
<a data-role="label" id="aPager" class="ui-disabled" style="padding:0;">2</a>
**<!-- (2) i want 2 from id="aPager" but it gives me some string with it i m and jquerymobile is already using this class '.ui-btn-text' -->**
<a href="#" data-role="button" id="aNextPage" onclick="NextPage()" data-icon="arrow-r" data-theme="a" data-iconpos="notext" data-inline="true"> </a>
</div>
</div><!-- /navbar -->
</div><!-- /footer -->