title: change element style in method callback
body: <p>This code is trying to add a class to an element. the class definition is located in meteor_app_root/stylesheets/style.css <code>.wrongInput { color: red; }</code>
  This method returns fine but the text inside the input element is not changing to red as I am expecting.    </p>
  
  <p><strong>edited</strong><br>
  I get browser console print "server returned" but the addClass line is not doing its work.   </p>
  
  <p><strong>edited</strong>
  changing the style from <code>color: Red;</code> to <code>border-color: Red;</code> makes the boarder colour red.
  What am I doing wrong? Thanks</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Template.footer.events({
    'click button': function () {
     var doc = {};
     $('input').each(function () {
       this.value &amp;&amp; (doc[this.name]=this.value)
     });
     
      Meteor.call('processInputs', doc, function (err, res) {
        if (res) {
          console.log("res   " + res);
          $('[name="plate"]').addClass("wrongInput");
        }
      });
    }
  });
  
  
  //server.js
  Meteor.methods({
    processInputs: function (doc) {
      return "server acted";
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;template name="content"&gt;
    &lt;div class="container"&gt;
      &lt;div class="row"&gt;
        &lt;section class="col-xs-12"&gt;
          &lt;form&gt;
            &lt;ul class="list-group"&gt;
              {{#each this.items}}
                &lt;li&gt;
                  &lt;input class="list-group-item basic-vertical-spacing col-xs-12" type="text"
                         name={{name}} placeholder={{placeholder}}&gt;
                &lt;/li&gt;
              {{/each}}
            &lt;/ul&gt;
          &lt;/form&gt;
        &lt;/section&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/template&gt;</code></pre>
  </div>
  </div>
  </p>