简体   繁体   中英

How to get the value of span inside a td using Jquery?

How to get the value inside the span class using Jquery?

<td class="date-data"> 
    <input type="text" id="start_2262016233000" class="form-control form-control-small make-small fieldEditable sampleValidation hasDatepicker"     style="display:none" value="26-Jan-2015" maxlength="10" name="$FO$i_submitSample.arrSampleStartDaTe">
    <span class="lblStartDt lblCurrentValue">26-Jan-2015</span>
</td>
$('.date-data span').text();

最好添加一个id

<td id="my-td">...</td>

$('#my-td span').text();

最好提供id。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM