title: JavaScript onClick change css
body: <p>This is probably really simple, I know you can change css properties with javascript by doing;</p>
  
  <pre><code>document.getElementById('bob').style.background='#000000';
  </code></pre>
  
  <p>But I recently found out that you can do this differently and style multiple things, so something like this;</p>
  
  <pre><code>document.getElementById('bob').css='background:#ffffff; color: #000000;';
  </code></pre>
  
  <p>the problem is I have forgotten what the code, So what I basically want to achieve is what goes in instead of the ".css"? Does anyone know the code I need out the top of their head?</p>