如何使用Jquery获取span类中的值?
<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>
答案 0 :(得分:1)
The path to the driver executable must be set by the webdriver.ie.driver system property;
最好添加 id 。
答案 1 :(得分:1)
<td id="my-td">...</td>
$('#my-td span').text();
最好提供id。