title: html select list onchange failed to call method on Google Chrome (Works for IE)
body: <p>I have a <code>select</code> list and <code>options</code> are populated from database as below:</p>
  
  <pre><code>&lt;select name="users" onchange="showUser()"&gt;
  &lt;?php 
  $dbhost = 'localhost';
  $dbuser = 'root';
  $dbpass = '';   
  $conn = mysql_connect($dbhost, $dbuser, $dbpass);
  if(! $conn )
  {
    die('Could not connect: ' . mysql_error());
  }
  $sql = 'SELECT userName FROM user';
  
  mysql_select_db('finance');
  $retval = mysql_query( $sql, $conn );
  if(! $retval )
  {
    die('Could not get data: ' . mysql_error());
  }
  while($row = mysql_fetch_array($retval, MYSQL_ASSOC))
  {
      $val = $row['ID'];
      echo "&lt;option value=$val&gt;" . $row['userName'] . "&lt;/option&gt;";
  }
  ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>And this is the very simple alert function:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function showUser()
  {
      alert("haha");
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I do able to get the values from database but whenever onChange, there are no alert?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>It WORKS on IE but not Google Chrome?!</p>