Team:CBNU-Korea/test

From 2012.igem.org

(Difference between revisions)
Line 558: Line 558:
<script type="text/javascript">
<script type="text/javascript">
$(function() {
$(function() {
 +
 +
var array = [
 +
'https://static.igem.org/mediawiki/2012/4/4b/CBK_NC_017040_before.png',
 +
'https://static.igem.org/mediawiki/2012/1/12/CBK_NC_006449_before.png' ]
 +
$('#CB_select').change(function(event) {
$('#CB_select').change(function(event) {
-
var imgSrc = $(event.target).val();
+
var i = document.getElementById("CB_select").selectedIndex;
 +
var imgSrc = array.i;
$('#img_test').attr('src', imgSrc);
$('#img_test').attr('src', imgSrc);
}).change();
}).change();

Revision as of 12:23, 26 September 2012

SAFETY

- Safety