a jQuery event passes me e.
I can then use: e.currentTarget which gives me the element
<input type="checkbox" class="list_completed_checkbox" id="list_item_completed_checkbox_81">
But if I try doing e.currentTarget.fadeOut(); I get an error:
68Uncaught TypeError: Object #<HTMLInputElement> has no method 'fadeOut
How can I use the element w jQuery? Thanks
You need to wrap the element with
$()to get a jQuery extended element.should do the trick.