title: Push object to array in js or jquery?
body: <p>In my <code>Script.js</code> I am trying to push the object to array=>array of objects.</p>
  
  <pre><code>$("#save_filter").click(function(){
      var filter_saved = new Object();//Create new object to store the filter have been saved.
      var customer_type_selected = $('#id_customer_type :selected').text();
      var list_tag_selected = $("#tag_checked").val();
      var filter_name = $("#put_filter_name").val();
  
      // Save filter name to the object={tag:[2,3,], customer_type:'TDO', more...}
      filter_saved = {
          customer_type: customer_type_selected,
          tag: list_tag_selected
      };
      var array_obj_filter_saved = []
  
      //I am trying...
      array_obj_filter_saved.push(filter_saved);//push every objects to array
      alert(array_obj_filter_saved.length);
  });
  </code></pre>
  
  <p>My Array will be like this  assciated array</p>
  
  <pre><code>array_obj_filter_saved = {"time1":filter_saved1,"time2":filter_saved2}
  </code></pre>
  
  <p>Anybody know how can I push every object to a array or associated array?</p>
  
  <p>*** filter_saved this an object  it will create every time base on options in   form(customer_type_selected(choicefield),list_tag_selected(checkboxs))</p>