Quick bug fix: id variable no longer exists, so get id from $(this).