This is probably very simple, I know that you can change the css properties using javascript by doing
document.getElementById('bob').style.background='#000000';
But I recently found out that you can do it differently and create a few things, something like this;
document.getElementById('bob').css='background:#ffffff; color: #000000;';
The problem is that I forgot what code is. So what I basically want to achieve is what happens instead of ".css"? Does anyone know the code I need from my head?
Lenny Magico
source share