我想获得我的代码在下面的跨度值。当我单击任何图像时,我想要的只是使用 class="hideme" 获取跨度值。我使用 html5 jquerymobile phonegap_v2.0 框架 Xcode_v4.3
CSS代码:
.hideme{
diplay:none;
}
html代码:
<ol id='ulist' data-role='listview' data-filter='true'>
<li>
<a href='#' rel="external" data-mini="true">John<span id='id1' class="hideme" >1</span></a>
<div data-role="field" style="float: right;margin-top: -30px;padding-right: 4%;">
<img data-mini="true" src="icons/ios/info.png" alt="info"/>
<img data-mini="true" src="icons/ios/session.png" alt="session"/>
<img data-mini="true" src="icons/ios/prospclient.png" alt="Prospect Client"/>
<img data-mini="true" src="icons/ios/delete.png" alt="delete"/>
</div>
</li>
<li>
<a href='#' rel="external" data-mini="true">Carmen<span id='id2' class="hideme" >2</span></a>
<div data-role="field" style="float: right;margin-top: -30px;padding-right: 4%;">
<img data-mini="true" src="icons/ios/info.png" alt="info"/>
<img data-mini="true" src="icons/ios/session.png" alt="session"/>
<img data-mini="true" src="icons/ios/prospclient.png" alt="Prospect Client"/>
<img data-mini="true" src="icons/ios/delete.png" alt="delete"/>
</div>
</li>
<li>
<a href='#' rel="external" data-mini="true">Julia<span id='id3' class="hideme" >3</span></a>
<div data-role="field" style="float: right;margin-top: -30px;padding-right: 4%;">
<img data-mini="true" src="icons/ios/info.png" alt="info"/>
<img data-mini="true" src="icons/ios/session.png" alt="session"/>
<img data-mini="true" src="icons/ios/prospclient.png" alt="Prospect Client"/>
<img data-mini="true" src="icons/ios/delete.png" alt="delete"/>
</div>
</li>
</ol>
如何在 javascript 或 jquery 中执行