title: jQuery Array : Add css class to specific element
body: <p>I have a small problem with this array.</p>
  
  <p>I need to add css class in each key has a value 0 for exemple, this is my essay:</p>
  
  <pre><code>var obj = {"test_1":"1","test_2":"1","test_3":"0","test_4":"0","test_5":"0","test_6":"1","test_7":"0"};
  $.each( obj, function( key, value ) { 
    alert("key " + key + " has value " + obj[key]);
    if(value = 0) {
      $('#'+ key).addClass('hidden');// hidden only the obj has value = 0
    }
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/8TT4p/1636/" rel="nofollow">http://jsfiddle.net/8TT4p/1636/</a></p>