I have a list of checkboxes and want to do something with all the names of the checkboxes. But I can't seem to access the HTML objects:
$('.update').click(function(){
$('input[type=checkbox]:checked').each(function(i,elem){
console.log(elem);
elem.hide();
});
});
This produces TypeError: elem.hide is not a function
But the console.log(elem) shows: <input type="checkbox" name="TV">
How can I access each element?