Highilight a button after pushing javascript
<p>I'm trying to make simple image gallery with html/css and a bit of javascript.It's all up and working, but one function.</p>

<p><img src="http://i.stack.imgur.com/P9Njw.png" alt="gallery-sorting-images"></p>

<p>I want that when I open the index.html 'All' would be already highlighted by my custom style and if pushed on another button highlight would go to that particular button.</p>

<p>html of a button looks like this</p>

<pre><code>&lt;input type='button' value='Design' class="cat-itiem" id='filterDesign'&gt;
</code></pre>

<p><strong>edit:</strong> I ended up using <a href="http://stackoverflow.com/a/9267656/1175593">OnResolve's method</a> and it worked just fine!(even for someone who doesn't know any JS) Thank you all for help :)</p>
