title: How to Color a Boarder in Sap UI5 with Jquery
body: <p>I have the following problem: after the input in a field I check if the value of the field is ok. </p>
  
  <pre><code>        var oCheckGrossTons = oGrossTons.getValue();
          var Msg = this.getResourceBundle().getText("validation.grossTons");
  
              if (oCheckGrossTons &lt; 500) 
              {var oMessage = new Message({
              message: Msg,
              type: MessageType.Error
          });
          sap.ui.getCore().getMessageManager().addMessages(oMessage);
  </code></pre>
  
  <p>So and now I want to color the border of this field in red so the user can see where he made a mistake.</p>
  
  <p>So I tried to solve this with a jQuery. I created a CSS style like:</p>
  
  <pre><code>.rrpGrossTons {
  border-color: "red"}
  </code></pre>
  
  <p>and my jQuery looks like this:</p>
  
  <pre><code>$("...").addClass('.rrpGrossTons');
  </code></pre>
  
  <p>So my main problem is, how do I get the ID of the field, because I think I have to enter the ID in the <code>("...")</code> after the <code>$</code> symbol. And is the Syntax of my jQuery correct?</p>