title: How do I convert the jquery Isotope select box filter code to vanilla javascript
body: <p>I am trying to convert this jQuery select box filter code in Isotope to pure javascript because the jquery version doesn't work on our site. Here is the jQuery code</p>
  
  <pre><code>$('#filters').on( 'change', function() {
  // get filter value from option value
  var filterValue = this.value;
  // use filterFn if matches value
  filterValue = filterFns[ filterValue ] || filterValue;
  $container.isotope({ filter: filterValue });
  });
  </code></pre>
  
  <p>Here is my converted javascript:</p>
  
  <pre><code>//Filter on change event
  function filtersElem(){
  var filtersElem = document.getElementById("filters");
  if(filtersElem[filtersElem.selectedIndex].value==filterValue {
  // use matching filter function
  filterValue = filterFns[ filterValue ] || filterValue;
  iso.arrange({ filter: filterValue });
  });
  </code></pre>
  
  <p>What am I missing?  It is not working.  I just need to convert the above jQuery back to vanilla javascript. I am new to pure javascript.</p>
  
  <p>Thanks for your help!</p>
  
  <p>here is a jsfiddle that shows the problem <a href="http://jsfiddle.net/EFRR3/11/" rel="nofollow">http://jsfiddle.net/EFRR3/11/</a></p>