Question: When the user makes a selection on a select box with id `some_select_box`: 

* I want to grab the value that was selected
* I want to grab all form fields on the page that have the class `hidden_search_box` and change all their values to match the selected value.

I am missing something obvious here in my code:

```
$(document).on('change', '#some_select_box', function () {
  var selected_value = this.value;
  $(".hidden_search_box").each(function () {
    this.value = selected_value;
  });
});

```

**Answer**: [jsfiddle](https://jsfiddle.net/smn0axbf/3/)

Answer: 
The problem in your js fiddle is, you haven't added jQuery library to it, so you should be having an error like `Uncaught ReferenceError: $ is not defined` in your console.

To add jQuery to the fiddle, in the javascript panel, click on the icon on the top right and select jQuery under library dropdown.
Try this

```
$(document).on('change', '#some_select_box', function () {
    $(".hidden_search_box").val(this.val());
    $(".hidden_search_box option[value='"+this.val()+"']").attr('selected','selected');

});

```