title: Find value in associative array
body: <p>I have created an associative array using following function.</p>
  
  <pre><code>function checkEmpty(){
  
              var sizes = new Array();
              var validate = new Array();
              $j('div.option-fields').each(function(){
                  if($j(this).attr('id')) {
  
                      sizes.push($j(this).attr('id'));
                  }
  
              });
              for(var i=0; i&lt; sizes.size(); i++){
                  $j("#"+sizes[i]+' input[type=text]').each(function(){
                      if($j(this).val()){
                          //validate.push(true);
                          validate[sizes[i]] = true;  
                      }else{
                          //validate.push(false);
                          validate[sizes[i]] = false;
                      }
                  });
  
              }
  }
  </code></pre>
  
  <p>which return [size-278: true, size-287: true]</p>
  
  <p>Now I want to search whether this result contain false in value or not,
  or whether all value with different indexes are same or not.</p>
  
  <p>I used inArray but it is giving -1 every time.</p>