Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Dynamic Select Menus (revised)

#88 Dynamic Select Menus (revised)

Nov 25, 2011 | 7 minutes | Views, Forms
Do you need to dynamically change one select menu based on the value of another? Here I show how to filter states/provinces by a selected country using grouped options and a dab of CoffeeScript.
  • Download:
  • source codeProject Files in Zip (126 KB)
  • mp4Full Size H.264 Video (16.8 MB)
  • m4vSmaller H.264 Video (8.8 MB)
  • webmFull Size VP8 Video (10.8 MB)
  • ogvFull Size Theora Video (20.8 MB)