【发布时间】:2016-05-23 19:07:24
【问题描述】:
此 Meteor 服务器端代码试图获取此 html 字符串中的数量 77,但我的选择器返回空对象。我怎样才能从这个 html 中得到 77?谢谢
$('select[name=paid] option').data();
<td class="displayValue">
<select name="paid" id="paidId"><option value="77.00" selected="selected">77.00</option>
<option value="Other">Other</option></select>
</td>
</tr>
【问题讨论】:
标签: javascript jquery cheerio