Automatically select an option tag

(I have asked this in Stack Overflow)

Is it possible to fetch the value of a document’s field, and use it to select an option tag on said document’s template?

Here’s my code:

  boxOptions: function () {
    var currenUser = Meteor.userId();

    return Boxes.find({ createdBy: currenUser });

<template name="item">
  <div class="item">
    <div class="item-content">

    <div class="item-menu">
        <option value="">None</option>

        {{#each boxOptions}}
          <option value="{{_id}}">{{name}}</option>

      <button class="delete-item">Delete</button>

My first thought was to use a helper, much like “checked” in the official todo tutorial, but I don’t know how to pass it the necessary id’s (item and box ids).

How do I solve this?

I found a solution: Template.parentData();

This is the helper I’m using on the item template:

  selected: function () {
    if (this._id == Template.parentData().boxId) {
      return "selected";