title: Getting: SyntaxError: missing : in conditional expression
body: <p>I am trying to resolve My issue can some one help me ? My code are</p>
  
  <pre><code>let addClass = (obj) =&gt; {obj.classList.add('active-input');}
  let removeClass = (obj) =&gt; {obj.classList.remove('active-input');}
  </code></pre>
  
  <p>I am trying to create a form by using below HTML which is concatenating in a  variable and then I am updating it on DOM.</p>
  
  <pre><code>&lt;input class="inputFull" list="ozip" id="orZip" name="OrZip" onfocus="addClass(this);this.placeholder=\'\';document.getElementById(\'orTitle\').style.display =\'block\';" onblur="this.value ? removeClass(this);document.getElementById(\'orTitle\').style.display =\'block\'; : document.getElementById(\'orTitle\').style.display =\'none\';this.placeholder=\'Origin postal code\'" placeholder="Origin postal code" autocomplete="off"/&gt;
  </code></pre>
  
  <p>Can someone explain why I am getting <strong>SyntaxError: missing : in conditional expression</strong>.</p>