title: javascript to dynamically populate dropdown with an array from value typed into text field
body: <p>Hi I have a code example available here: <a href="http://jsbin.com/oxoweh" rel="nofollow">http://jsbin.com/oxoweh</a></p>
  
  <p>My problem is that I cannot get the value that is being entered into the textbox so that when the select button is clicked the second dropdown will display only the data related to what was entered into the text box. for example if fruits is entered into the textbox I want to have the subcat dropdown have all fruits in it instead of using the existing category dropdown menu</p>