This Meteor server side code is trying to get the amount 77 which is in this html string but my selector is returning empty object. How can I get 77 out of this html? Thanks
$('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>
$('select[name=paid] option').first().attr('value')
Should work! Your code is too general and won't return anything because there is more than one option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With