Dynamic select menu Rails, Javascript HABTM
- by Jack
Hi,
I am following a tutorial in one of Ryan Bates' Railscasts here. Basically I want a form where there are 2 drop down menus, the contents of one are dependent on the other. I have Years and Courses, where Years HABMT Courses and Courses HABTM Years. In the tutorial, the javascript is as follows:
var states = new Array();
<% for state in…