title: Populated options from database doesn't run script on change
body: <p>I load the options for my select from a database (which loads the options) and am trying to run a script when the selected option changes (which doesn't run) the script is below</p>
  
  <pre><code>&lt;script&gt;
  $(function()
  {
  
      function subrace()
      {
          var race = $("#race").val();
  
          console.log(race + "!");
      }
  
      $("#race")
        .selectmenu()
        .selectmenu(
        {
            change:  subrace()
        })
        .selectmenu("menuWidget")
        .addClass("overflow");
   });
   &lt;/script&gt;
  
  
  &lt;select name="race" id="race"&gt;
  &lt;?php
  
  $dbhost = "localhost";
  $dbuser = "DanD_user";
  $dbpass = "****************";
  $dbname = "dand_user";
  
  $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
  
  $query = "SELECT * FROM races ORDER BY name ASC";
  
  $result = mysqli_query($mysqli, $query);
  $x = 0;
  while($row = $result-&gt;fetch_array(MYSQLI_BOTH))
  {
      echo"    &lt;option value=\"" . $row['name'] . "\"&gt;" . $row['name'] . "&lt;/option&gt;\n";
      $x++;
  }
  
  if($x === 0)
  {
      echo"&lt;option disabled selected&gt;No Races Available&lt;/option&gt;";
  }
  ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The script <strong>is</strong> in the head element and once I get the script to run I'll be adjusting it the console is just a peice to see if it runs</p>