我有「格」包含跨度,所以我想那個特定區間的ID如果我有使用jQuery的div的id,我如何獲得<span>的ID?
<div id="status-0" class="abc">
<span id="span_id" class="xyz" title="Enabled"> </span>
</div> So how to get id of span with jquery? and after some action i want to change class of that span using id, how to do that?
的使用,如果你長了在另一個jQuery的變量SPAN_ID = $ DIV ID(「#」 + div_id +」跨度').attr(' ID「); – Ganesh