title: Make Select Options Be Just Links
body: <p>I've got the follow script that let's a user select a "folder" and then the jquery code listens and displays the code.  Right now the code is in a select box but I'd like them to just display as links instead.  Is this possible?</p>
  
  <p>Here's the jquery:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
  $(document).ready(function () {
      $("#theselect").change(function() {
  var option = $(this).val();
  var selectedUser = $("#thename").val();
  $.get("selectfolders.php", {select:option,username:selectedUser},function(data){
      $("#theresult").html(data).hide().fadeIn(1000);
  });
  });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p><br><br></p>
  
  <p>Here's the php code to look up and display all the users folders: (This is what I want to be links instead of a select box.)</p>
  
  <pre><code>&lt;select name="theselect" id="theselect"&gt;
  &lt;option value=""&gt;Select&lt;/option&gt;
  &lt;?
  $thelistquery = mysql_query("SELECT * FROM folders WHERE username='$username'");
  while ($lrows = mysql_fetch_array($thelistquery)) {
  $id = $lrows['ID'];
  $foldername = $lrows['foldername'];
  $newfoldername = mysql_real_escape_string($foldername);
  
  echo "&lt;option value='$newfoldername'&gt;$newfoldername&lt;/option&gt;";
  }
  ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Selectfolders.php</p>
  
  <pre><code>$username = $_GET['username'];
  $theselect = $_GET['select'];
  
  $thelistquery = mysql_query("SELECT * FROM folders WHERE username='$username'");
  while ($lrows = mysql_fetch_array($thelistquery)) {
  $id = $lrows['ID'];
  $foldername = $lrows['foldername'];
  $newfoldername = mysql_real_escape_string($foldername);
  
  if($_GET['select'] == "$newfoldername") {
  //What to display
  }
  }
  
  
  ?&gt;
  </code></pre>