I feel close yet so far away lol

I can get it to display the image path but how do I update the img
src

any ideas?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head><title></title>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.2.6/jquery.min.js"></script>

<script type="text/javascript" src="http://texotela.appspot.com/js/
plugins/jquery.selectboxes.js"></script>
<script type="text/javascript" src="http://www.texotela.co.uk/js/
parsesamples.js"></script>
<script type="text/javascript">
$(document).ready(
   function()
   {
      parseSamples();
      $("#debug").hide();
      $("select").change(
         function()
         {
            $("#debug").show();

            $("#debug").html("images/icons/" + this.value + "'");
         }
      );
   }
)
</script>
</head>
<body>
<form id="example" action="javascript:void()">
<p><select name="myselect" id="myselect">
<option value="java.png">#myselect option 1</option>
<option value="js.png">#myselect option 2</option>
</select></p>
<p>My Select 2:</p>


<div id="debug">
<img src="indices/icons/php.png" alt="" />
</div>
</form>
</body>
</html>

Reply via email to