This code:
$el.parent().html()
Writes out as:
<input type="checkbox"> <span>Finish This</span>
If I want to get the value of the span in the parent attribute how do I do this?
I’ve tried this:
$el.parent().html().$('span').val()
or:
$el.parent().$('span').val()
And other things to that effect, but I can’t seem to get the value of the span.
I’m guessing there is a problem with how I’m thinking the objects work in jQuery, or is it a simple solution to this?
Is it a function I’m missing?
Try this:
or this