title: Filtering an OptionSet based on another field selection
body: <p>I have one optionSet named STATES.  Another named RESTAURANTS.  </p>
  
  <p>My goal is to filter the Restaurants optionSet according to what State is selected.  </p>
  
  <p>My current method is to design the values of the options where: </p>
  
  <pre><code>States[0] = 1000
  States[1] = 2000
  States[2] = 3000
  </code></pre>
  
  <p>Then, Restaurants:</p>
  
  <pre><code>Restaurants[3] = 1003
  Restaurants[30] = 2004
  </code></pre>
  
  <p>I then iterate through the Restaurants when the States field is changed.  If the restaurant value is not in the range of the selected State, I call removeOption(Restaurant.value).  </p>
  
  <p>My problem is that if the State is changed more than once, every value will have been removed, because I don't "refresh" the optionset or "replaceOption".  </p>
  
  <p>Is there any way to display all optionSet values after they have been removed via removeOption, via javascript?  </p>