title: How to retrieve the value from Select html element using JS prototype in php?
body: <pre><code>&lt;script type="text/javascript" src="prototype.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      function reload(form){
      var val = $("seltab");alert(val);
      }&lt;/script&gt;
  echo "&lt;form method = post name = f1 action = '' &gt;";
      echo "&lt;select id = seltab onchange =  'reload(this.form)'&gt;";
          $querysel = "SELECT title_id,author FROM authors NATURAL JOIN books";
      $result1 = mysql_query($querysel) ;
      while($rowID = mysql_fetch_assoc($result1))
      {
          $TitleID = $rowID['title_id'];
          $author = $rowID['author'];
          print "&lt;option value =$TitleID&gt;$author\n";
          print "&lt;/option&gt;";
      }
      print "&lt;/select&gt;";
  </code></pre>